commit | 3dd981c779040ca71e194852e1b36151484c9ea2 | [log] [tgz] |
---|---|---|
author | Piotr Krysik <ptrkrysik@gmail.com> | Fri Dec 01 11:59:32 2017 +0100 |
committer | Piotr Krysik <ptrkrysik@gmail.com> | Fri Dec 01 11:59:32 2017 +0100 |
tree | 9c84098ba3b3fd42c8d2c683c2fe81471bd6c023 | |
parent | 66c56e7803e8cf65193e472f00740ad7a7f229de [diff] |
trx: passing remote addr to bind
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 @@ 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