From d90ab901453a8e07bae5dde5a9f7963dbc23f71a Mon Sep 17 00:00:00 2001 From: Anatoly Yakovenko Date: Thu, 26 Apr 2018 13:54:29 -0700 Subject: [PATCH] bind to all --- src/crdt.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/crdt.rs b/src/crdt.rs index 0b33e387a8..b7742d5cd3 100644 --- a/src/crdt.rs +++ b/src/crdt.rs @@ -168,9 +168,7 @@ impl Crdt { // Lock the object only to do this operation and not for any longer // especially not when doing the `sock.send_to` let (remote_gossip_addr, req) = obj.read().unwrap().gossip_request(); - let mut req_addr = remote_gossip_addr; - req_addr.set_port(0); - let sock = UdpSocket::bind(req_addr)?; + let sock = UdpSocket::bind("0.0.0.0:0")?; // TODO this will get chatty, so we need to first ask for number of updates since // then only ask for specific data that we dont have let r = serialize(&req)?;