Skip to content

Commit

Permalink
broker: Check for "falsey" bind value.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjlongland committed Aug 17, 2021
1 parent 70ba923 commit 78de493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amqtt/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78de493

Please sign in to comment.