You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-emulation/virtualbox/files/virtualbox-4.1.18-ipv6_vnc....

21 lines
840 B

diff -aur vanilla/VirtualBox-4.1.18/src/VBox/Frontends/VBoxHeadless/FramebufferVNC.cpp changed/VirtualBox-4.1.18/src/VBox/Frontends/VBoxHeadless/FramebufferVNC.cpp
--- vanilla/VirtualBox-4.1.18/src/VBox/Frontends/VBoxHeadless/FramebufferVNC.cpp 2012-06-20 15:15:53.000000000 +0200
+++ changed/VirtualBox-4.1.18/src/VBox/Frontends/VBoxHeadless/FramebufferVNC.cpp 2012-07-16 16:24:22.448349886 +0200
@@ -88,8 +88,16 @@
vncServer = rfbGetScreen(0, NULL, mWidth, mHeight, 8, 3, 1);
vncServer->screenData = (void*)this;
+#ifdef LIBVNCSERVER_IPv6
+ if (mVncPort) {
+ vncServer->port = mVncPort;
+ vncServer->ipv6port = mVncPort;
+ }
+#else
if (mVncPort)
vncServer->port = mVncPort;
+#endif
+
char *pszDesktopName;
rc = RTStrAPrintf(&pszDesktopName, "%s - VirtualBox", pszName);
if (rc >= 0)