From daaa41ba3daa8acb40dafbef84a9b9b61134d031 Mon Sep 17 00:00:00 2001 From: hackrush Date: Sat, 2 Feb 2019 12:11:02 +0530 Subject: [PATCH] pass `unicast` if not None --- aioupnp/gateway.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aioupnp/gateway.py b/aioupnp/gateway.py index d772d98..bdd918f 100644 --- a/aioupnp/gateway.py +++ b/aioupnp/gateway.py @@ -196,6 +196,7 @@ class Gateway: async def discover_gateway(cls, lan_address: str, gateway_address: str, timeout: int = 30, igd_args: OrderedDict = None, loop=None, unicast: bool = None): if unicast is not None: + return await cls._discover_gateway(lan_address, gateway_address, timeout, igd_args, loop, unicast) return await cls._discover_gateway(lan_address, gateway_address, timeout, igd_args, loop) done, pending = await asyncio.wait([ cls._discover_gateway(