ipaddrs: return 127.0.0.1 if everything else fails

This helps the windows tests where ipaddrs currently fails entirely.
This commit is contained in:
Brian Warner 2016-02-27 17:35:26 -08:00
parent ca06e95bbd
commit 1903c58248

View File

@ -42,7 +42,7 @@ def find_addresses():
addresses = [] addresses = []
if addresses: if addresses:
return addresses return addresses
return [] return ["127.0.0.1"]
def _query(path, args, regex): def _query(path, args, regex):
env = {'LANG': 'en_US.UTF-8'} env = {'LANG': 'en_US.UTF-8'}