duplicate IPs allowed

This commit is contained in:
Gregory Bednov 2025-08-12 16:54:32 +03:00
commit cdbef17af3

View file

@ -164,14 +164,15 @@ func WriteConfig(config *cfg.Config, configPath *string, nodeInfo p2p.NodeInfo)
config.P2P.PersistentPeers = a config.P2P.PersistentPeers = a
} }
v.Set("p2p", map[string]interface{}{ v.Set("p2p", map[string]any{
"use_legacy": false, "use_legacy": false,
"queue_type": "priority", "queue_type": "priority",
"laddr": strconv.Itoa(yggListenPort) + ":127.0.0.1:8000", "laddr": strconv.Itoa(yggListenPort) + ":127.0.0.1:8000",
"external_address": "", // will be set automatically by Tendermint if needed "external_address": "",
"upnp": false, "upnp": false,
"bootstrap_peers": "", "bootstrap_peers": "",
"persistent_peers": config.P2P.PersistentPeers, "persistent_peers": config.P2P.PersistentPeers,
"allow_duplicate_ip": true, // needed because of Yggdrasil proxy
"addr_book_file": "config/addrbook.json", "addr_book_file": "config/addrbook.json",
"addr_book_strict": false, "addr_book_strict": false,
}) })