duplicate IPs allowed
This commit is contained in:
parent
fb3e471172
commit
cdbef17af3
1 changed files with 11 additions and 10 deletions
|
|
@ -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,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue