|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-changelog
[Xen-changelog] add support for ipv6 address in choose_vnc_display	funct
 
# HG changeset patch
# User vh249@xxxxxxxxxxxxxxxxxxxxxx
# Node ID cb518207fc9561a43c1cc14702a9c075ae9a302e
# Parent  da550f59e9719f2c099c4f3b89c8590fd1c92edd
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@xxxxxxxxxxxxx>
diff -r da550f59e971 -r cb518207fc95 tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Thu Sep 15 12:19:00 2005
+++ b/tools/python/xen/xm/create.py     Thu Sep 15 12:21:23 2005
@@ -673,7 +673,7 @@
             # 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
 
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [Xen-changelog] add support for ipv6 address in choose_vnc_display	function,
Xen patchbot -unstable <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |