fix setting the external ip from upnp

This commit is contained in:
Jack Robison 2019-06-24 15:39:31 -04:00
parent 3f4895bd40
commit 15341aa80e
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -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