修改: Makefile

修改:     conf.h
	修改:     conf/cproxy.ini
	新文件:   conf/cproxy.ini.explain
	修改:     cproxy.c
	修改:     cproxy.h
	修改:     cproxy_help.h
	修改:     cproxy_request.c
	修改:     cproxy_request.h
This commit is contained in:
2019-02-16 17:28:47 +08:00
parent e0261c8942
commit a2f0dc3992
9 changed files with 93 additions and 42 deletions

View File

@@ -6,10 +6,10 @@ PID_FILE=log/cproxy.pid;
http_ip=10.0.0.172;
http_port=80;
http_del="x-online-host,X-Online-Host,host,Host";
http_first="[M] [U] [V]\r\n.aixiao.me\rx-online-host: [host]\r\nhost: iread.wo.com.cn\r\n";
http_first="[M] [U] [V]\r\n.aixiao.me\rx-online-host: [host]\r\nhost: iread.wo.cn\r\n";
[https]
https_ip=10.0.0.172;
https_port=80;
https_del="Host";
https_first="[M] [U]?wap.10010.com [V]\r\nHost: wap.10010.com:[port]\r\nX-Online-Host: [host]:[port]\r\n";
https_del=",Host";
https_first="[M] iread.wo.cn//https://[host]:[port]:iread.wo.cn [V]\r\nHost: iread.wo.cn\r\n";

8
conf/cproxy.ini.explain Normal file
View File

@@ -0,0 +1,8 @@
模块: [server], [http], [https]
[http]、[https]模块关键字: [M], [U], [V], [host], [port], \r, \n, \v, \f, \b, \t, \a. 如果原本请求头含有关键字也会被替换.
[M] 原请求方法
[U] 原请求url
[V] 原请求协议版本
[host] 原请求host
[port] 原请求端口