diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-04-01 23:02:57 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-04-01 23:02:57 +0800 |
commit | 53742cdbb07bd8739bc3a0f765760211268fc1c0 (patch) | |
tree | 39ddf5adbb87f982ebc06f53ee83fc606cd7b144 /net/vino/files/patch-server_libvncserver_sockets.c | |
parent | b056da02371b67a21cc4132e9d4d99b868b606d6 (diff) | |
download | marcuscom-ports-53742cdbb07bd8739bc3a0f765760211268fc1c0.tar marcuscom-ports-53742cdbb07bd8739bc3a0f765760211268fc1c0.tar.gz marcuscom-ports-53742cdbb07bd8739bc3a0f765760211268fc1c0.tar.bz2 marcuscom-ports-53742cdbb07bd8739bc3a0f765760211268fc1c0.tar.lz marcuscom-ports-53742cdbb07bd8739bc3a0f765760211268fc1c0.tar.xz marcuscom-ports-53742cdbb07bd8739bc3a0f765760211268fc1c0.tar.zst marcuscom-ports-53742cdbb07bd8739bc3a0f765760211268fc1c0.zip |
Update to 2.28.2.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13952 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'net/vino/files/patch-server_libvncserver_sockets.c')
-rw-r--r-- | net/vino/files/patch-server_libvncserver_sockets.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/net/vino/files/patch-server_libvncserver_sockets.c b/net/vino/files/patch-server_libvncserver_sockets.c new file mode 100644 index 000000000..348ea91d3 --- /dev/null +++ b/net/vino/files/patch-server_libvncserver_sockets.c @@ -0,0 +1,30 @@ +--- server/libvncserver/sockets.c.orig 2009-02-13 08:11:38.000000000 -0500 ++++ server/libvncserver/sockets.c 2009-03-07 20:19:28.000000000 -0500 +@@ -668,6 +669,11 @@ NewSocketListenTCP(struct sockaddr *addr + { + int sock = -1; + int one = 1; ++#ifdef ENABLE_IPV6 ++#ifdef IPV6_V6ONLY ++ int off = 0; ++#endif ++#endif + + if ((sock = socket(addr->sa_family, SOCK_STREAM, 0)) < 0) + return -1; +@@ -677,6 +683,15 @@ NewSocketListenTCP(struct sockaddr *addr + return -1; + } + ++#ifdef ENABLE_IPV6 ++#ifdef IPV6_V6ONLY ++ if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&off, sizeof(off)) < 0) { ++ close(sock); ++ return -1; ++ } ++#endif ++#endif ++ + if (bind(sock, addr, len) < 0) { + close(sock); + return -1; |