Go to file
2022-01-12 09:41:32 +08:00
libs It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
obj/local It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
udpServer Httpudp support, fixed error reading httpdns "http_req". 2021-12-23 09:02:41 +08:00
13.txt It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
Android.mk The getaddrinfo () function is no longer used, the static compilation libc dependency is removed, and the configuration file server address is no longer supported to fill in the domain name. 2021-12-09 19:31:51 +08:00
Application.mk The getaddrinfo () function is no longer used, the static compilation libc dependency is removed, and the configuration file server address is no longer supported to fill in the domain name. 2021-12-09 19:31:51 +08:00
conf.c It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
conf.h It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
conf.o It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
CProxy It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
CProxy.conf It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
CProxy.conf.explain Httpudp support, fixed error reading httpdns "http_req". 2021-12-23 09:02:41 +08:00
help.c Modify httpdns for Android, and fix the problem of negative number when get gets the length of host. 2021-07-20 22:17:06 +08:00
help.h The getaddrinfo () function is no longer used, the static compilation libc dependency is removed, and the configuration file server address is no longer supported to fill in the domain name. 2021-12-09 19:31:51 +08:00
help.o It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
http_proxy.c It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
http_proxy.h Httpudp support, fixed error reading httpdns "http_req". 2021-12-23 09:02:41 +08:00
http_proxy.o It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
http_request.c It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
http_request.h Httpudp support, fixed error reading httpdns "http_req". 2021-12-23 09:02:41 +08:00
http_request.o It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
httpdns.c The getaddrinfo () function is no longer used, the static compilation libc dependency is removed, and the configuration file server address is no longer supported to fill in the domain name. 2021-12-09 19:31:51 +08:00
httpdns.h Modify httpdns for Android, and fix the problem of negative number when get gets the length of host. 2021-07-20 22:17:06 +08:00
httpdns.o It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
httpudp.c Httpudp support, fixed error reading httpdns "http_req". 2021-12-23 09:02:41 +08:00
httpudp.h Httpudp support, fixed error reading httpdns "http_req". 2021-12-23 09:02:41 +08:00
httpudp.o It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
main.c It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
main.h Httpudp support, fixed error reading httpdns "http_req". 2021-12-23 09:02:41 +08:00
main.o It supports reading the same parameters in the configuration file (such as strrep and regrep) 2022-01-12 09:41:32 +08:00
Makefile Httpudp support, fixed error reading httpdns "http_req". 2021-12-23 09:02:41 +08:00
README.md Support the same configuration name in the configuration file (still under test). 2022-01-02 18:36:09 +08:00

CProxy

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

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: [-?h] [-s signal] [-c filename]

Options:
    -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

Dec 19 2020 09:18:15 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