Add an ability to change P2P listening address (#4849)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
kaliubuntu0206
2023-09-29 21:44:43 +09:00
committed by GitHub
parent 3c681fa45e
commit 23d2baff0f
6 changed files with 73 additions and 53 deletions

View File

@ -88,6 +88,11 @@ use reth_net_nat::ResolveNatInterval;
/// reexport to get public ip.
pub use reth_net_nat::{external_ip, NatResolver};
/// The default address for discv4 via UDP
///
/// Note: the default TCP address is the same.
pub const DEFAULT_DISCOVERY_ADDR: Ipv4Addr = Ipv4Addr::UNSPECIFIED;
/// The default port for discv4 via UDP
///
/// Note: the default TCP port is the same.