214 for networkInterface in QNetworkInterface.allInterfaces(): |
214 for networkInterface in QNetworkInterface.allInterfaces(): |
215 addressEntries = networkInterface.addressEntries() |
215 addressEntries = networkInterface.addressEntries() |
216 if len(addressEntries) > 0: |
216 if len(addressEntries) > 0: |
217 for addressEntry in addressEntries: |
217 for addressEntry in addressEntries: |
218 if addressEntry.ip().toString().lower() == address.lower(): |
218 if addressEntry.ip().toString().lower() == address.lower(): |
219 return networkInterface.name(), networkInterface.index() |
219 return networkInterface.humanReadableName(), \ |
|
220 networkInterface.index() |
220 |
221 |
221 return "", 0 |
222 return "", 0 |
222 |
223 |
223 def preferencesChanged(self): |
224 def preferencesChanged(self): |
224 """ |
225 """ |