mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 09:08:05 -05:00
fix(disc): use remote addr for NodeRecord on ping (#753)
This commit is contained in:
@@ -834,9 +834,9 @@ impl Discv4Service {
|
||||
fn on_ping(&mut self, ping: Ping, remote_addr: SocketAddr, remote_id: PeerId, hash: H256) {
|
||||
// update the record
|
||||
let record = NodeRecord {
|
||||
address: ping.from.address,
|
||||
address: remote_addr.ip(),
|
||||
udp_port: remote_addr.port(),
|
||||
tcp_port: ping.from.tcp_port,
|
||||
udp_port: ping.from.udp_port,
|
||||
id: remote_id,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user