63 if len(addressEntries) > 0: |
63 if len(addressEntries) > 0: |
64 for addressEntry in addressEntries: |
64 for addressEntry in addressEntries: |
65 if ":" in addressEntry.ip().toString() and not socket.has_ipv6: |
65 if ":" in addressEntry.ip().toString() and not socket.has_ipv6: |
66 continue # IPv6 not supported by Python |
66 continue # IPv6 not supported by Python |
67 interfaces.append("{0} ({1})"\ |
67 interfaces.append("{0} ({1})"\ |
68 .format(networkInterface.name(), |
68 .format(networkInterface.humanReadableName(), |
69 addressEntry.ip().toString())) |
69 addressEntry.ip().toString())) |
70 self.interfacesCombo.addItems(interfaces) |
70 self.interfacesCombo.addItems(interfaces) |
71 interface = Preferences.getDebugger("NetworkInterface") |
71 interface = Preferences.getDebugger("NetworkInterface") |
72 if not socket.has_ipv6: |
72 if not socket.has_ipv6: |
73 # IPv6 not supported by Python |
73 # IPv6 not supported by Python |