SOURCES: openvpn-tcp-client-bind.patch (NEW) - bind() in tcp-clien...

wiget wiget at pld-linux.org
Fri May 5 15:37:30 CEST 2006


Author: wiget                        Date: Fri May  5 13:37:30 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- bind() in tcp-client mode (if --local specified)

---- Files affected:
SOURCES:
   openvpn-tcp-client-bind.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/openvpn-tcp-client-bind.patch
diff -u /dev/null SOURCES/openvpn-tcp-client-bind.patch:1.1
--- /dev/null	Fri May  5 15:37:30 2006
+++ SOURCES/openvpn-tcp-client-bind.patch	Fri May  5 15:37:24 2006
@@ -0,0 +1,12 @@
+--- openvpn-2.0.6/socket.c.wiget	2006-05-05 15:32:12.000000000 +0200
++++ openvpn-2.0.6/socket.c	2006-05-05 15:33:48.000000000 +0200
+@@ -1028,7 +1028,8 @@
+     }
+   else if (sock->info.proto == PROTO_TCPv4_CLIENT)
+     {
+-      sock->bind_local = false;
++      if (!(sock->local_host))
++    sock->bind_local = false;
+     }
+ 
+   /* were we started by inetd or xinetd? */
================================================================


More information about the pld-cvs-commit mailing list