iputil.py: expose get_local_addresses_sync

This commit is contained in:
Brian Warner 2016-04-26 18:18:13 -07:00
parent cf5b02b487
commit bdf1f8460d

View File

@ -71,6 +71,8 @@ except ImportError:
# since one might be shadowing the other. This hack appeases pyflakes.
increase_rlimits = _increase_rlimits
def get_local_addresses_sync():
return _synchronously_find_addresses_via_config()
def get_local_addresses_async(target="198.41.0.4"): # A.ROOT-SERVERS.NET
"""