mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 02:25:40 +08:00
Change -Do option to -De (external)
This commit is contained in:
parent
b033b150b1
commit
8c0dc7d8c9
@ -155,8 +155,8 @@ connect to given remote HOST:port instead of listening local connection on -p or
|
||||
.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.
|
||||
.br
|
||||
.B -DiINTERFACE, -DoINTERFACE
|
||||
bind incoming connection / outgoing connection to given INTERFACE (e.g. eth0) if SO_BINDTODEVICE supported by system
|
||||
.B -DiINTERFACE, -DeINTERFACE
|
||||
bind internal interface / external inteface to given INTERFACE (e.g. eth0) if SO_BINDTODEVICE supported by system
|
||||
.br
|
||||
Also, all options mentioned for
|
||||
.BR proxy (8)
|
||||
|
@ -177,8 +177,8 @@ int MODULEMAINFUNC (int argc, char** argv){
|
||||
" -u2 always ask for username\n"
|
||||
#endif
|
||||
#ifdef SO_BINDTODEVICE
|
||||
" -Di(DEVICENAME) bind to incoming device, e.g. eth1\n"
|
||||
" -Do(DEVICENAME) bind to outgoing device, e.g. eth1\n"
|
||||
" -Di(DEVICENAME) bind internal interface to device, e.g. eth1\n"
|
||||
" -De(DEVICENAME) bind external interface to device, e.g. eth1\n"
|
||||
#endif
|
||||
#ifdef WITHSLICE
|
||||
" -s Use slice() - faster proxing, but no filtering for data\n"
|
||||
@ -309,7 +309,7 @@ int MODULEMAINFUNC (int argc, char** argv){
|
||||
#ifdef SO_BINDTODEVICE
|
||||
case 'D':
|
||||
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;
|
||||
#endif
|
||||
case 'l':
|
||||
|
Loading…
Reference in New Issue
Block a user