From 3dd981c779040ca71e194852e1b36151484c9ea2 Mon Sep 17 00:00:00 2001 From: Piotr Krysik Date: Fri, 1 Dec 2017 11:59:32 +0100 Subject: trx: passing remote addr to bind --- python/trx/udp_link.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/trx/udp_link.py') diff --git a/python/trx/udp_link.py b/python/trx/udp_link.py index 584a6ac..675ef5c 100644 --- a/python/trx/udp_link.py +++ b/python/trx/udp_link.py @@ -28,7 +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.bind(('0.0.0.0', bind_port)) + self.sock.bind((remote_addr, bind_port)) self.sock.setblocking(0) # Save remote info -- cgit v1.2.3