Go to file
2020-10-27 16:42:51 +08:00
Android.mk Add SSL encoding 2020-03-24 11:46:32 +08:00
Application.mk Add SSL encoding 2020-03-24 11:46:32 +08:00
conf.c Optimize gcc10 compilation error 2020-09-09 21:55:48 +08:00
conf.h Fix getting the host and port functions extract_ Host(), do not process post header temporarily. 2020-08-16 07:58:53 +08:00
CProxy.conf Support ipv6 2020-10-27 16:42:51 +08:00
CProxy.conf.explain add httpdns client 2020-07-30 18:10:31 +08:00
help.c Fix getting the host and port functions extract_ Host(), do not process post header temporarily. 2020-08-16 07:58:53 +08:00
help.h eopll rewrite 2020-01-21 19:48:05 +08:00
http_proxy.c Support ipv6 2020-10-27 16:42:51 +08:00
http_proxy.h Optimize gcc10 compilation error 2020-09-09 21:55:48 +08:00
http_request.c optimization 2020-08-26 20:40:35 +08:00
http_request.h Fix getting the host and port functions extract_ Host(), do not process post header temporarily. 2020-08-16 07:58:53 +08:00
httpdns.c Optimize gcc10 compilation error 2020-09-09 21:55:48 +08:00
httpdns.h Optimize gcc10 compilation error 2020-09-09 21:55:48 +08:00
kill.c Language format 2020-06-08 20:28:15 +08:00
kill.h Get host error, kill process error. 2020-02-13 15:33:38 +08:00
main.c Support ipv6 2020-10-27 16:42:51 +08:00
main.h Support ipv6 2020-10-27 16:42:51 +08:00
Makefile Optimize gcc10 compilation error 2020-09-09 21:55:48 +08:00
README.md Support ipv6 2020-10-27 16:42:51 +08:00
timeout.c Fix getting the host and port functions extract_ Host(), do not process post header temporarily. 2020-08-16 07:58:53 +08:00
timeout.h Fix getting the host and port functions extract_ Host(), do not process post header temporarily. 2020-08-16 07:58:53 +08:00

CProxy

EPOLL多路复用IO, Android/Linux本地二级代理.  
可以修改HTTP协议消息头(request).  
可以修改HTTP协议CONNECT方法消息头.  
可以修改HTTP协议GET方法消息头.  
初步支持IPV6.

Build

Linux编译:  
git clone https://github.com/niuyuling/CProxy.git  
cd CProxy  
make clean; make  

windows 10子系统交叉编译:  
apt-get install gcc-aarch64-linux-gnu  
make clean; CROSS_COMPILE=aarch64-linux-gnu- make  

Android NDK 编译:  
ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=Application.mk APP_BUILD_SCRIPT=Android.mk  

Help Information

CProxy proxy server
Author: aixiao@aixiao.me
Usage: [-?hpt] [-s signal] [-c filename]

Options:
    -p --process           : process number
    -t --timeout           : timeout minute
    -e --coding            : ssl coding, [0-128]
    -s --signal            : send signal to a master process: stop, quit, restart, reload, status
    -c --config            : set configuration file, default: CProxy.conf
    -? -h --? --help       : help information

Mar 22 2020 09:29:11 Compile、link.

#启动
./CProxy -c CProxy.conf
#关闭
./CProxy -s stop
#重启
./CProxy -s reload -c CProxy.conf
or
./CProxy -s restart -c CProxy.conf
#状态(只打印 Pid)
./CProxy -s status