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