Pārlūkot izejas kodu

Change -Do option to -De (external)

z3APA3A 8 gadi atpakaļ
vecāks
revīzija
8c0dc7d8c9
2 mainītis faili ar 5 papildinājumiem un 5 dzēšanām
  1. 2 2
      man/3proxy.cfg.3
  2. 3 3
      src/proxymain.c

+ 2 - 2
man/3proxy.cfg.3

@@ -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
-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
 .br
  Also, all options mentioned for 
  Also, all options mentioned for 
 .BR proxy (8)
 .BR proxy (8)

+ 3 - 3
src/proxymain.c

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