mirror of
https://github.com/JoelBender/bacpypes
synced 2025-09-28 22:15:23 +08:00
vlan node bind in __init__ failed because empty networks are falsy
This commit is contained in:
parent
ab7ef56fe7
commit
38c8fb2613
|
@ -98,7 +98,7 @@ class Node(Server):
|
|||
self.address = addr
|
||||
|
||||
# bind to a lan if it was provided
|
||||
if lan:
|
||||
if lan is not None:
|
||||
self.bind(lan)
|
||||
|
||||
# might receive all packets and might spoof
|
||||
|
|
|
@ -98,7 +98,7 @@ class Node(Server):
|
|||
self.address = addr
|
||||
|
||||
# bind to a lan if it was provided
|
||||
if lan:
|
||||
if lan is not None:
|
||||
self.bind(lan)
|
||||
|
||||
# might receive all packets and might spoof
|
||||
|
|
|
@ -98,7 +98,7 @@ class Node(Server):
|
|||
self.address = addr
|
||||
|
||||
# bind to a lan if it was provided
|
||||
if lan:
|
||||
if lan is not None:
|
||||
self.bind(lan)
|
||||
|
||||
# might receive all packets and might spoof
|
||||
|
|
Loading…
Reference in New Issue
Block a user