2020-01-21 19:48:05 +08:00
|
|
|
### CProxy
|
|
|
|
EPOLL多路复用IO, Android/Linux本地二级代理.
|
2019-02-07 17:26:48 +08:00
|
|
|
可以修改HTTP协议消息头(request).
|
|
|
|
可以修改HTTP协议CONNECT方法消息头.
|
2019-01-10 23:12:51 +08:00
|
|
|
|
|
|
|
|
2020-01-21 19:48:05 +08:00
|
|
|
### Build
|
|
|
|
git clone https://github.com/niuyuling/cproxy.git
|
|
|
|
git clone https://github.com/ndevilla/iniparser.git
|
|
|
|
cd iniparser
|
|
|
|
make
|
|
|
|
cd ../cproxy
|
|
|
|
make clean; make
|
2019-05-09 18:25:42 +08:00
|
|
|
|
2020-01-21 19:48:05 +08:00
|
|
|
windows 10子系统交叉编译:
|
|
|
|
apt-get install gcc-aarch64-linux-gnu
|
|
|
|
make clean; CROSS_COMPILE=aarch64-linux-gnu- make
|
|
|
|
|
|
|
|
### Help Information
|
|
|
|
./CProxy -h
|
|
|
|
CProxy proxy server
|
2019-05-09 18:25:42 +08:00
|
|
|
Author: aixiao@aixiao.me
|
2020-01-21 19:48:05 +08:00
|
|
|
Usage: [-?hpt] [-s signal] [-c filename]
|
2019-05-09 18:25:42 +08:00
|
|
|
|
|
|
|
Options:
|
2019-06-20 09:39:31 +08:00
|
|
|
-?,-h : help information
|
2020-01-21 19:48:05 +08:00
|
|
|
-p : process number, default 2 process
|
|
|
|
-t : timeout minute, default is no timeout
|
|
|
|
-s signal : send signal to a master process: stop, quit, restart, reload, status
|
|
|
|
-c filename : set configuration file (default: cproxy.ini)
|
|
|
|
|
|
|
|
Jan 13 2020 19:56:06 Compile、link.
|
2019-05-09 18:25:42 +08:00
|
|
|
|
2020-01-21 19:48:05 +08:00
|
|
|
#启动
|
|
|
|
./CProxy -c CProxy.ini
|
|
|
|
#关闭
|
|
|
|
./CProxy -s stop
|
|
|
|
#重启
|
|
|
|
./CProxy -s reload -c CProxy.ini
|
|
|
|
or
|
|
|
|
./CProxy -s restart -c CProxy.ini
|
|
|
|
#状态
|
|
|
|
./CProxy -s status
|
|
|
|
|