mirror of
https://github.com/JoelBender/bacpypes
synced 2025-10-27 00:57:47 +08:00
synchronize changes with other versions
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
BACnet Virtual Link Layer Service
|
||||
"""
|
||||
|
||||
import sys
|
||||
import struct
|
||||
from time import time as _time
|
||||
|
||||
@@ -88,8 +89,8 @@ class UDPMultiplexer:
|
||||
self.directPort = UDPDirector(self.addrTuple)
|
||||
bind(self.direct, self.directPort)
|
||||
|
||||
# create and bind the broadcast address
|
||||
if specialBroadcast and (not noBroadcast):
|
||||
# create and bind the broadcast address for non-Windows
|
||||
if specialBroadcast and (not noBroadcast) and 'win' not in sys.platform:
|
||||
self.broadcast = _MultiplexClient(self)
|
||||
self.broadcastPort = UDPDirector(self.addrBroadcastTuple, reuse=True)
|
||||
bind(self.direct, self.broadcastPort)
|
||||
|
||||
Reference in New Issue
Block a user