Prefer ips starting with 192 on upnp port opening
This commit is contained in:
parent
8ea8e8c28a
commit
52afc9d0b2
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue