Skip to content

Commit

Permalink
修改: Makefile
Browse files Browse the repository at this point in the history
	修改:     README.md
	修改:     conf.c
	修改:     conf.h
	修改:     conf/cproxy.ini
	修改:     cproxy.c
	修改:     cproxy.h
	新文件:   cproxy_help.c
	新文件:   cproxy_help.h
	修改:     cproxy_request.c
	修改:     cproxy_request.h
	修改:     log/cproxy.pid
  • Loading branch information
niuyuling committed Feb 7, 2019
1 parent 266aade commit e0261c8
Show file tree
Hide file tree
Showing 12 changed files with 449 additions and 438 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ CFLAGS = -g -Wall -Werror -I../iniparser/src -L../iniparser
LIBS = -liniparser
OBJ := cproxy

all: cproxy.o cproxy_request.o conf.o
all: cproxy.o conf.o cproxy_request.o cproxy_help.o
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
strip $(OBJ)
-chmod 755 $(OBJ)
-chmod a+x $(OBJ)
.c.o:
$(CC) $(CFLAGS) -c $< $(LIBS)

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# cproxy
基于mproxy修改后的Android本地代理.
可以修改非Http tunnel消息头(request).
Android本地二级代理.
可以修改HTTP协议消息头(request).
可以修改HTTP协议CONNECT方法消息头.


# Build
Expand Down
5 changes: 3 additions & 2 deletions conf.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "conf.h"

void read_conf(char *file, conf * p)
void read_conf(char *file, conf *p)
{
dictionary *ini = iniparser_load(file);

Expand Down Expand Up @@ -101,7 +101,7 @@ void read_conf(char *file, conf * p)
iniparser_freedict(ini);
}

void free_conf(conf * p)
void free_conf(conf *p)
{
free(p->server_pid_file);
free(p->http_ip);
Expand All @@ -111,3 +111,4 @@ void free_conf(conf * p)
free(p->https_del);
free(p->https_first);
}

1 change: 1 addition & 0 deletions conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
#include "cproxy.h"

#endif

2 changes: 1 addition & 1 deletion conf/cproxy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ http_first="[M] [U] [V]\r\n.aixiao.me\rx-online-host: [host]\r\nhost: iread.wo.c
https_ip=10.0.0.172;
https_port=80;
https_del="Host";
https_first="[M] [U] [V]\r\nHost: [host]\r\n";
https_first="[M] [U]?wap.10010.com [V]\r\nHost: wap.10010.com:[port]\r\nX-Online-Host: [host]:[port]\r\n";
Loading

0 comments on commit e0261c8

Please sign in to comment.