add support for ipv6 address in choose_vnc_display function

getting the port from the latest field, not the first one.
fix suggested by Nickolai Zeldovich. close bug #231

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
This commit is contained in:
vh249@arcadians.cl.cam.ac.uk committed 2005-09-15 12:21:23 +00:00
1 parent b4082b47ef
commit 1e2fc48ada
1 file changed
+1 -1
+1 -1
View File
@@ -673,7 +673,7 @@ def choose_vnc_display():
# Local port is field 3.
y = x.split()[3]
# Field is addr:port, split off the port.
y = y.split(':')[1]
y = y.split(':')[-1]
r.append(int(y))
return r
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.