From c01ad757fdd3676ffec1d05a0c653d5b042e98a1 Mon Sep 17 00:00:00 2001 From: Noobvie <85051719+noobvie@users.noreply.github.com> Date: Tue, 19 May 2026 21:01:36 -0400 Subject: [PATCH] Change default IP address for P2PConfig to '::' Feature request: Change default P2P listen host from 0.0.0.0 to :: for dual-stack IPv4+IPv6 support. As tested on several windows/linux machines and not found issue. Worked with ipv4 or ipv6 or dual ipv4+ipv6. --- p2p/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/src/types.rs b/p2p/src/types.rs index 76cc3fe79f..8d0bdd1a55 100644 --- a/p2p/src/types.rs +++ b/p2p/src/types.rs @@ -293,7 +293,7 @@ pub struct P2PConfig { /// Default address for peer-to-peer connections. impl Default for P2PConfig { fn default() -> P2PConfig { - let ipaddr = "0.0.0.0".parse().unwrap(); + let ipaddr = "::".parse().unwrap(); P2PConfig { host: ipaddr, port: 3414,