fixes from review

This commit is contained in:
Ethan Buchman
2018-07-02 12:18:17 -04:00
parent 1c018d3fd2
commit 737c5c065d
4 changed files with 23 additions and 29 deletions

View File

@ -426,7 +426,11 @@ func (n *Node) OnStart() error {
}
// Create & add listener
l := p2p.NewDefaultListener(n.config.P2P, n.Logger.With("module", "p2p"))
l := p2p.NewDefaultListener(
n.config.P2P.ListenAddress,
n.config.P2P.ExternalAddress,
n.config.P2P.UPNP,
n.Logger.With("module", "p2p"))
n.sw.AddListener(l)
// Generate node PrivKey