duplicate IPs allowed
This commit is contained in:
parent
fb3e471172
commit
cdbef17af3
1 changed files with 11 additions and 10 deletions
|
|
@ -164,16 +164,17 @@ func WriteConfig(config *cfg.Config, configPath *string, nodeInfo p2p.NodeInfo)
|
|||
config.P2P.PersistentPeers = a
|
||||
}
|
||||
|
||||
v.Set("p2p", map[string]interface{}{
|
||||
"use_legacy": false,
|
||||
"queue_type": "priority",
|
||||
"laddr": strconv.Itoa(yggListenPort) + ":127.0.0.1:8000",
|
||||
"external_address": "", // will be set automatically by Tendermint if needed
|
||||
"upnp": false,
|
||||
"bootstrap_peers": "",
|
||||
"persistent_peers": config.P2P.PersistentPeers,
|
||||
"addr_book_file": "config/addrbook.json",
|
||||
"addr_book_strict": false,
|
||||
v.Set("p2p", map[string]any{
|
||||
"use_legacy": false,
|
||||
"queue_type": "priority",
|
||||
"laddr": strconv.Itoa(yggListenPort) + ":127.0.0.1:8000",
|
||||
"external_address": "",
|
||||
"upnp": false,
|
||||
"bootstrap_peers": "",
|
||||
"persistent_peers": config.P2P.PersistentPeers,
|
||||
"allow_duplicate_ip": true, // needed because of Yggdrasil proxy
|
||||
"addr_book_file": "config/addrbook.json",
|
||||
"addr_book_strict": false,
|
||||
})
|
||||
|
||||
err = v.WriteConfigAs(*configPath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue