show network interface error
This commit is contained in:
parent
fea983ed5a
commit
fc511cfe4e
1 changed files with 3 additions and 1 deletions
|
@ -63,8 +63,10 @@ class UPnP:
|
||||||
ssdp_socket: socket.socket = None) -> Dict:
|
ssdp_socket: socket.socket = None) -> Dict:
|
||||||
try:
|
try:
|
||||||
lan_address, gateway_address = cls.get_lan_and_gateway(lan_address, gateway_address, interface_name)
|
lan_address, gateway_address = cls.get_lan_and_gateway(lan_address, gateway_address, interface_name)
|
||||||
|
assert gateway_address and lan_address
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
raise UPnPError("failed to get lan and gateway addresses: %s" % str(err))
|
raise UPnPError("failed to get lan and gateway addresses for interface \"%s\": %s" % (interface_name,
|
||||||
|
str(err)))
|
||||||
if not igd_args:
|
if not igd_args:
|
||||||
igd_args, datagram = await fuzzy_m_search(lan_address, gateway_address, timeout, ssdp_socket)
|
igd_args, datagram = await fuzzy_m_search(lan_address, gateway_address, timeout, ssdp_socket)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue