CProxy/README.md

44 lines
1.2 KiB
Markdown
Raw Normal View History

2020-01-21 19:48:05 +08:00
### CProxy
EPOLL多路复用IO, Android/Linux本地二级代理.
可以修改HTTP协议消息头(request).
可以修改HTTP协议CONNECT方法消息头.
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
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
Author: aixiao@aixiao.me
2020-01-21 19:48:05 +08:00
Usage: [-?hpt] [-s signal] [-c filename]
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.
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