Change default IP address for P2PConfig to IPv6 (#3843)

* Change default IP address for P2PConfig to IPv6

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.

* docs+config add p2p listen host options

---------

Co-authored-by: Joerg <wiesche89@googlemail.com>
This commit is contained in:
Noobvie
2026-05-27 15:34:48 -04:00
committed by GitHub
parent 90b153fafc
commit 8688a98e4f
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -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,