From 78de49398ad6e1501f5785cfcd8f16395516c275 Mon Sep 17 00:00:00 2001 From: Stuart Longland Date: Wed, 18 Aug 2021 08:00:43 +1000 Subject: [PATCH] broker: Check for "falsey" `bind` value. As per https://github.com/Yakifo/amqtt/pull/72#discussion_r690388963 --- amqtt/broker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amqtt/broker.py b/amqtt/broker.py index 3eee4982..e05fcdb2 100644 --- a/amqtt/broker.py +++ b/amqtt/broker.py @@ -167,7 +167,7 @@ def __init__( # [::]:1883 - IPv6 address # # We filter the address string through `ipaddress` to validate it. - if bind is not None: + if bind: try: str_address: Optional[str] = None str_port: Optional[str] = None