[PATCH 2/3] Show port for the XVNC server IP address

Martin Kolman mkolman at gmail.com
Thu Jun 13 14:40:21 UTC 2013


Previously the port was shown only for the XVNC server hostname
and not for the IP address, which might be confusing for the user.

Signed-off-by: Martin Kolman <mkolman at gmail.com>
---
 pyanaconda/vnc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/vnc.py b/pyanaconda/vnc.py
index 301aa1e..71d9344 100644
--- a/pyanaconda/vnc.py
+++ b/pyanaconda/vnc.py
@@ -124,7 +124,7 @@ class VncServer:
             ipstr = "[%s]" % (self.ip,)
 
         if (self.name is not None) and (not self.name.startswith('localhost')) and (ipstr is not None):
-            self.connxinfo = "%s:%s (%s)" % (socket.getfqdn(name=self.name), self.display, ipstr,)
+            self.connxinfo = "%s:%s (%s:%s)" % (socket.getfqdn(name=self.name), self.display, ipstr, self.display)
         elif ipstr is not None:
             self.connxinfo = "%s:%s" % (ipstr, self.display,)
         else:
-- 
1.8.1.4



More information about the anaconda-patches mailing list