On Tue, 3 Feb 2004 23:23:08 +0100, Christof Meerwald wrote:
> On Fri, 30 Jan 2004 13:04:12 +0100, Christof Meerwald wrote:
>> I have added support for Socks5 proxies to OpenVPN 1.5.0. It should work for
>> TCP and UDP client modes (but I have only tested it in UDP client mode yet,
>> because that's what I plan to use).
> UDP packets might be truncated because the Socks server adds a 10-byte
> header to them - here is a patch (against 1.6 beta5) to fix it.

And here is the fix for the Win32 version:

diff -ur openvpn-1.6_beta6.orig/socket.c openvpn-1.6_beta6/socket.c
--- openvpn-1.6_beta6.orig/socket.c     Wed Feb 04 00:58:24 2004
+++ openvpn-1.6_beta6/socket.c  Mon Feb 16 21:38:56 2004
@@ -1364,6 +1364,9 @@
       wsabuf[0].len = maxsize ? maxsize : BLEN (&sock->reads.buf);
       ASSERT (wsabuf[0].len <= BLEN (&sock->reads.buf));

+      if (sock->proto == PROTO_UDPv4 && sock->socks_proxy)
+       wsabuf[0].len += 10;
+
       /* the overlapped read will signal this event on I/O completion */
       ASSERT (ResetEvent (sock->reads.overlapped.hEvent));
       sock->reads.flags = 0;


bye, Christof

-- 
http://cmeerw.org                                 JID: cme...@jabber.at
mailto cmeerw at web.de

Reply via email to