diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/trx/udp_link.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/trx/udp_link.py b/python/trx/udp_link.py index cedcb1b..1fae8b4 100644 --- a/python/trx/udp_link.py +++ b/python/trx/udp_link.py @@ -28,6 +28,7 @@ import select class udp_link: def __init__(self, remote_addr, remote_port, bind_port): self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) + self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) self.sock.bind((remote_addr, bind_port)) self.sock.setblocking(0) |