Change -Do option to -De (external)

This commit is contained in:
z3APA3A 2017-09-06 19:19:36 +03:00
parent b033b150b1
commit 8c0dc7d8c9
2 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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':