mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-25 02:31:46 +00:00
p2p: external address
* new config option for external address to advertise * if blank, defaults to best guess from listener * if laddr ip address is also blank, default to IPv4
This commit is contained in:
@ -276,6 +276,9 @@ type P2PConfig struct {
|
||||
// Address to listen for incoming connections
|
||||
ListenAddress string `mapstructure:"laddr"`
|
||||
|
||||
// Address to advertise to peers for them to dial
|
||||
ExternalAddress string `mapstructure:"external_address"`
|
||||
|
||||
// Comma separated list of seed nodes to connect to
|
||||
// We only use these if we can’t connect to peers in the addrbook
|
||||
Seeds string `mapstructure:"seeds"`
|
||||
@ -340,6 +343,7 @@ type P2PConfig struct {
|
||||
func DefaultP2PConfig() *P2PConfig {
|
||||
return &P2PConfig{
|
||||
ListenAddress: "tcp://0.0.0.0:26656",
|
||||
ExternalAddress: "",
|
||||
UPNP: false,
|
||||
AddrBook: defaultAddrBookPath,
|
||||
AddrBookStrict: true,
|
||||
|
Reference in New Issue
Block a user