View | Details | Raw Unified | Return to bug 193778
Collapse All | Expand All

(-)./emulators/virtualbox-ose/files/patch-src-VBox-ExtPacks-VNC-VBoxVNC.cpp (+28 lines)
Line 0 Link Here
1
--- ./src/VBox/ExtPacks/VNC/VBoxVNC.cpp.ORIG	2014-09-09 21:54:13.000000000 +0200
2
+++ ./src/VBox/ExtPacks/VNC/VBoxVNC.cpp	2014-09-19 19:49:34.000000000 +0200
3
@@ -291,7 +291,12 @@
4
                                                     &port, sizeof(port), &cbOut);
5
     Assert(cbOut <= sizeof(port));
6
     if (RT_SUCCESS(rc) && port != 0)
7
+    {
8
         vncServer->port = port;
9
+#if defined(LIBVNCSERVER_IPv6) && (LIBVNCSERVER_IPv6 != 0)
10
+        vncServer->ipv6port = port;
11
+#endif
12
+    }
13
     else
14
     {
15
         const char szFeatName[] = "Property/TCP/Ports";
16
@@ -310,7 +315,12 @@
17
             if (RT_FAILURE(rc) || port >= 65535)
18
                 vncServer->autoPort = 1;
19
             else
20
+	    {
21
                 vncServer->port = port;
22
+#if defined(LIBVNCSERVER_IPv6) && (LIBVNCSERVER_IPv6 != 0)
23
+		vncServer->ipv6port = port;
24
+#endif
25
+	    }
26
         }
27
         else
28
             vncServer->autoPort = 1;

Return to bug 193778