config: rename skip_upnp to upnp (#1827)

* config: rename skip_upnp to upnp

Change default option to enable upnp.

Closes #1806

* doc updates

- fix comment and set UPNP to false in TestP2PConfig
- add UPNP to config template
- update changelog
This commit is contained in:
Dev Ojha
2018-06-28 00:09:39 -07:00
committed by Anton Kaliaev
parent aa20c45ae9
commit b1d6deaf0b
9 changed files with 22 additions and 17 deletions

View File

@@ -10,8 +10,8 @@ import (
"github.com/prometheus/client_golang/prometheus/promhttp"
abci "github.com/tendermint/tendermint/abci/types"
amino "github.com/tendermint/go-amino"
abci "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tmlibs/common"
dbm "github.com/tendermint/tmlibs/db"
"github.com/tendermint/tmlibs/log"
@@ -427,7 +427,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.SkipUPNP, n.Logger.With("module", "p2p"))
l := p2p.NewDefaultListener(protocol, address, n.config.P2P.UPNP, n.Logger.With("module", "p2p"))
n.sw.AddListener(l)
// Generate node PrivKey