CProxy/README.md

46 lines
1.4 KiB
Markdown
Raw Normal View History

2020-01-21 19:48:05 +08:00
### CProxy
EPOLL多路复用IO, Android/Linux本地二级代理.
可以修改HTTP协议消息头(request).
可以修改HTTP协议CONNECT方法消息头.
可以修改HTTP协议GET方法消息头.
2020-10-27 16:42:51 +08:00
初步支持IPV6.
2020-01-21 19:48:05 +08:00
### Build
Linux编译:
git clone https://github.com/niuyuling/CProxy.git
cd CProxy
2020-01-21 19:48:05 +08:00
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
2020-03-24 14:15:15 +08:00
Android NDK 编译:
ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=Application.mk APP_BUILD_SCRIPT=Android.mk
2020-01-21 19:48:05 +08:00
### Help Information
CProxy proxy server
Author: aixiao@aixiao.me
2020-01-21 19:48:05 +08:00
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
2020-03-24 14:15:15 +08:00
-c --config : set configuration file, default: CProxy.conf
-? -h --? --help : help information
2020-01-21 19:48:05 +08:00
Mar 22 2020 09:29:11 Compile、link.
2020-01-21 19:48:05 +08:00
#启动
./CProxy -c CProxy.conf
2020-01-21 19:48:05 +08:00
#关闭
./CProxy -s stop
#重启
./CProxy -s reload -c CProxy.conf
2020-01-21 19:48:05 +08:00
or
./CProxy -s restart -c CProxy.conf
2020-03-24 14:15:15 +08:00
#状态(只打印 Pid)
2020-01-21 19:48:05 +08:00
./CProxy -s status