Skip to content

Commit

Permalink
fix the p2p self address and port
Browse files Browse the repository at this point in the history
  • Loading branch information
suemto committed Nov 10, 2020
1 parent 8efa606 commit 1946744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/src/serv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ impl Server {
let stream = match addr.clone() {
PeerAddr::Ip(address) => {
// we do this, not a good solution, but for now, we'll use it. Other side usually detects with ip.
self_addr = PeerAddr::Ip(address);
self_addr = PeerAddr::Ip(SocketAddr::new(self.config.host, self.config.port));
if self.socks_port != 0 {
peer_addr = Some(PeerAddr::Ip(address));
let proxy_addr =
Expand Down

0 comments on commit 1946744

Please sign in to comment.