224 for networkInterface in QNetworkInterface.allInterfaces(): |
224 for networkInterface in QNetworkInterface.allInterfaces(): |
225 addressEntries = networkInterface.addressEntries() |
225 addressEntries = networkInterface.addressEntries() |
226 if len(addressEntries) > 0: |
226 if len(addressEntries) > 0: |
227 for addressEntry in addressEntries: |
227 for addressEntry in addressEntries: |
228 if addressEntry.ip().toString().lower() == address.lower(): |
228 if addressEntry.ip().toString().lower() == address.lower(): |
229 return networkInterface.name(), networkInterface.index() |
229 return networkInterface.humanReadableName(), \ |
|
230 networkInterface.index() |
230 |
231 |
231 return "", 0 |
232 return "", 0 |
232 |
233 |
233 def preferencesChanged(self): |
234 def preferencesChanged(self): |
234 """ |
235 """ |