mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Change -Do option to -De (external)
This commit is contained in:
1 parent
b033b150b1
commit
8c0dc7d8c9
2 files changed
+5
-5
No files matched your search
+2
-2
@@ -155,8 +155,8 @@ connect to given remote HOST:port instead of listening local connection on -p or
|
|||||||
.B -ocOPTIONS, -osOPTIONS, -olOPTIONS
|
.B -ocOPTIONS, -osOPTIONS, -olOPTIONS
|
||||||
options for client (oc), server (os) or listening (ol) socket. Options like TCP_CORK, TCP_NODELAY, TCP_DEFER_ACCEPT, TCP_QUICKACK, TCP_TIMESTAMPS, USE_TCP_FASTOPEN, SO_REUSEADDR, SO_REUSEPORT, SO_PORT_SCALABILITY, SO_REUSE_UNICASTPORT, SO_KEEPALIVE, SO_DONTROUTE may be supported depending on OS.
|
options for client (oc), server (os) or listening (ol) socket. Options like TCP_CORK, TCP_NODELAY, TCP_DEFER_ACCEPT, TCP_QUICKACK, TCP_TIMESTAMPS, USE_TCP_FASTOPEN, SO_REUSEADDR, SO_REUSEPORT, SO_PORT_SCALABILITY, SO_REUSE_UNICASTPORT, SO_KEEPALIVE, SO_DONTROUTE may be supported depending on OS.
|
||||||
.br
|
.br
|
||||||
.B -DiINTERFACE, -DoINTERFACE
|
.B -DiINTERFACE, -DeINTERFACE
|
||||||
bind incoming connection / outgoing connection to given INTERFACE (e.g. eth0) if SO_BINDTODEVICE supported by system
|
bind internal interface / external inteface to given INTERFACE (e.g. eth0) if SO_BINDTODEVICE supported by system
|
||||||
.br
|
.br
|
||||||
Also, all options mentioned for
|
Also, all options mentioned for
|
||||||
.BR proxy (8)
|
.BR proxy (8)
|
||||||
|
|||||||
+3
-3
@@ -177,8 +177,8 @@ int MODULEMAINFUNC (int argc, char** argv){
|
|||||||
" -u2 always ask for username\n"
|
" -u2 always ask for username\n"
|
||||||
#endif
|
#endif
|
||||||
#ifdef SO_BINDTODEVICE
|
#ifdef SO_BINDTODEVICE
|
||||||
" -Di(DEVICENAME) bind to incoming device, e.g. eth1\n"
|
" -Di(DEVICENAME) bind internal interface to device, e.g. eth1\n"
|
||||||
" -Do(DEVICENAME) bind to outgoing device, e.g. eth1\n"
|
" -De(DEVICENAME) bind external interface to device, e.g. eth1\n"
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITHSLICE
|
#ifdef WITHSLICE
|
||||||
" -s Use slice() - faster proxing, but no filtering for data\n"
|
" -s Use slice() - faster proxing, but no filtering for data\n"
|
||||||
@@ -309,7 +309,7 @@ int MODULEMAINFUNC (int argc, char** argv){
|
|||||||
#ifdef SO_BINDTODEVICE
|
#ifdef SO_BINDTODEVICE
|
||||||
case 'D':
|
case 'D':
|
||||||
if(argv[i][2] == 'i') srv.ibindtodevice = mystrdup(argv[i] + 3);
|
if(argv[i][2] == 'i') srv.ibindtodevice = mystrdup(argv[i] + 3);
|
||||||
else if(argv[i][2] == 'o') srv.obindtodevice = mystrdup(argv[i] + 3);
|
else srv.obindtodevice = mystrdup(argv[i] + 3);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case 'l':
|
case 'l':
|
||||||
|
|||||||
Reference in new issue
Block a user