aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2017-12-01 11:59:32 +0100
committerPiotr Krysik <ptrkrysik@gmail.com>2017-12-01 11:59:32 +0100
commit3dd981c779040ca71e194852e1b36151484c9ea2 (patch)
tree9c84098ba3b3fd42c8d2c683c2fe81471bd6c023 /python
parent66c56e7803e8cf65193e472f00740ad7a7f229de (diff)
trx: passing remote addr to bind
Diffstat (limited to 'python')
-rw-r--r--python/trx/udp_link.py2
1 files changed, 1 insertions, 1 deletions
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