Prefer ips starting with 192 on upnp port opening

This commit is contained in:
shortcutme 2017-04-07 18:18:22 +02:00
parent 8ea8e8c28a
commit 52afc9d0b2
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -153,6 +153,7 @@ def _get_local_ips():
# Delete duplicates
local_ips = list(set(local_ips))
local_ips = sorted(local_ips, key=lambda a: a.startswith("192"), reverse=True) # Probably we looking for an ip starting with 192
logging.debug("Found local ips: %s" % local_ips)
return local_ips