summaryrefslogtreecommitdiffstats
path: root/vnc.py
diff options
context:
space:
mode:
Diffstat (limited to 'vnc.py')
-rw-r--r--vnc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/vnc.py b/vnc.py
index 7010411c6..37833040b 100644
--- a/vnc.py
+++ b/vnc.py
@@ -101,7 +101,10 @@ class VncServer:
# Look for the first configured interface and use its IP address for
# the computer to connect to.
- dev = netinfo.getFirstDeviceName()
+ devices = netinfo.netdevices
+ list = devices.keys()
+ list.sort()
+ dev = devices[list[0]]
try:
self.ip = isys.getIPAddress(dev)