merge
This commit is contained in:
commit
7064a591ff
|
@ -3,8 +3,8 @@
|
||||||
#include <ip.h>
|
#include <ip.h>
|
||||||
|
|
||||||
int socksver;
|
int socksver;
|
||||||
char *inside = "/net";
|
char inside[128];
|
||||||
char *outside = "/net";
|
char outside[128];
|
||||||
|
|
||||||
int
|
int
|
||||||
str2addr(char *s, uchar *a)
|
str2addr(char *s, uchar *a)
|
||||||
|
@ -203,9 +203,14 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
fmtinstall('I', eipfmt);
|
fmtinstall('I', eipfmt);
|
||||||
|
|
||||||
|
setnetmtpt(inside, sizeof(inside), 0);
|
||||||
|
setnetmtpt(outside, sizeof(outside), 0);
|
||||||
ARGBEGIN {
|
ARGBEGIN {
|
||||||
case 'x':
|
case 'x':
|
||||||
outside = ARGF();
|
setnetmtpt(inside, sizeof(inside), ARGF());
|
||||||
|
break;
|
||||||
|
case 'o':
|
||||||
|
setnetmtpt(outside, sizeof(outside), ARGF());
|
||||||
break;
|
break;
|
||||||
} ARGEND;
|
} ARGEND;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue