Do not require a nameserver to detect the local IP address

There may be cases where a name server is not configured on a system,
and there is no Internet access. Changing the local IP detection code
to work on these cases, by using the default gateway as a reference.

Change-Id: I3a6da3cdd3f3a17c24a855a912a3134e651cdc61
Closes-Bug: #1656459
This commit is contained in:
Javier Pena
2017-01-16 11:29:11 +01:00
committed by Alfredo Moralejo
parent 18f95c05fd
commit b1f8a221cf
2 changed files with 29 additions and 31 deletions

View File

@@ -4,3 +4,4 @@ PyYAML>=3.10
docutils>=0.11
cryptography!=1.3.0,>=1.0
pyOpenSSL<15.0.0
netifaces