2021-05-18 14:18:56 +08:00
|
|
|
# CProxy
|
|
|
|
|
2020-01-21 19:48:05 +08:00
|
|
|
EPOLL多路复用IO, Android/Linux本地二级代理.
|
2019-02-07 17:26:48 +08:00
|
|
|
可以修改HTTP协议消息头(request).
|
|
|
|
可以修改HTTP协议CONNECT方法消息头.
|
2020-08-16 07:58:53 +08:00
|
|
|
可以修改HTTP协议GET方法消息头.
|
2021-07-20 22:17:06 +08:00
|
|
|
支持IPV4/IPV6.
|
2021-05-18 14:18:56 +08:00
|
|
|
|
|
|
|
## Build
|
2019-01-10 23:12:51 +08:00
|
|
|
|
2020-03-24 11:46:32 +08:00
|
|
|
Linux编译:
|
|
|
|
git clone https://github.com/niuyuling/CProxy.git
|
|
|
|
cd CProxy
|
2020-01-21 19:48:05 +08:00
|
|
|
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
|
2020-03-24 11:46:32 +08:00
|
|
|
|
2020-03-24 14:15:15 +08:00
|
|
|
Android NDK 编译:
|
2020-03-24 11:46:32 +08:00
|
|
|
ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=Application.mk APP_BUILD_SCRIPT=Android.mk
|
2020-01-21 19:48:05 +08:00
|
|
|
|
2021-05-18 14:18:56 +08:00
|
|
|
## Help Information
|
|
|
|
|
2020-01-21 19:48:05 +08:00
|
|
|
CProxy proxy server
|
2019-05-09 18:25:42 +08:00
|
|
|
Author: aixiao@aixiao.me
|
2021-05-18 14:18:56 +08:00
|
|
|
Usage: [-?h] [-s signal] [-c filename]
|
2019-05-09 18:25:42 +08:00
|
|
|
|
|
|
|
Options:
|
2020-03-24 11:46:32 +08:00
|
|
|
-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
|
2020-03-24 11:46:32 +08:00
|
|
|
-? -h --? --help : help information
|
2020-01-21 19:48:05 +08:00
|
|
|
|
2021-05-18 14:18:56 +08:00
|
|
|
Dec 19 2020 09:18:15 Compile、link.
|
2019-05-09 18:25:42 +08:00
|
|
|
|
2020-01-21 19:48:05 +08:00
|
|
|
#启动
|
2020-08-16 07:58:53 +08:00
|
|
|
./CProxy -c CProxy.conf
|
2020-01-21 19:48:05 +08:00
|
|
|
#关闭
|
|
|
|
./CProxy -s stop
|
|
|
|
#重启
|
2020-08-16 07:58:53 +08:00
|
|
|
./CProxy -s reload -c CProxy.conf
|
2020-01-21 19:48:05 +08:00
|
|
|
or
|
2020-08-16 07:58:53 +08:00
|
|
|
./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
|