mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 12:51:22 +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:
@ -426,8 +426,7 @@ func (n *Node) OnStart() error {
|
||||
}
|
||||
|
||||
// Create & add listener
|
||||
protocol, address := cmn.ProtocolAndAddress(n.config.P2P.ListenAddress)
|
||||
l := p2p.NewDefaultListener(protocol, address, n.config.P2P.UPNP, n.Logger.With("module", "p2p"))
|
||||
l := p2p.NewDefaultListener(n.config.P2P, n.Logger.With("module", "p2p"))
|
||||
n.sw.AddListener(l)
|
||||
|
||||
// Generate node PrivKey
|
||||
|
Reference in New Issue
Block a user