fix setting the external ip from upnp
This commit is contained in:
parent
3f4895bd40
commit
15341aa80e
1 changed files with 1 additions and 1 deletions
|
@ -510,7 +510,7 @@ class UPnPComponent(Component):
|
||||||
external_ip = await utils.get_external_ip()
|
external_ip = await utils.get_external_ip()
|
||||||
if self.external_ip and self.external_ip != external_ip:
|
if self.external_ip and self.external_ip != external_ip:
|
||||||
log.info("external ip changed from %s to %s", self.external_ip, external_ip)
|
log.info("external ip changed from %s to %s", self.external_ip, external_ip)
|
||||||
if self.external_ip:
|
if external_ip:
|
||||||
self.external_ip = external_ip
|
self.external_ip = external_ip
|
||||||
# assert self.external_ip is not None # TODO: handle going/starting offline
|
# assert self.external_ip is not None # TODO: handle going/starting offline
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue