This commit is contained in:
Anatoly Yakovenko 2018-07-02 14:59:33 -07:00 committed by Greg Fitzgerald
parent a166bb816e
commit 7e657d65f3
1 changed files with 6 additions and 1 deletions

View File

@ -945,9 +945,14 @@ impl TestNode {
let gossip = UdpSocket::bind(local_gossip_addr).unwrap();
let replicate = UdpSocket::bind(local_replicate_addr).unwrap();
let requests = UdpSocket::bind(local_requests_addr).unwrap();
let repair = UdpSocket::bind(local_repair_addr).unwrap();
let gossip_send = UdpSocket::bind("0.0.0.0:0").unwrap();
let respond = UdpSocket::bind("0.0.0.0:0").unwrap();
// Responses are sent from the same Udp port as requests are received
// from, in hopes that a NAT sitting in the middle will route the
// response Udp packet correctly back to the requester.
let respond = requests_socket.try_clone().unwrap();
let broadcast = UdpSocket::bind("0.0.0.0:0").unwrap();
let retransmit = UdpSocket::bind("0.0.0.0:0").unwrap();
TestNode {