Disable UPnP on regtest and simnet

This commit is contained in:
Brannon King 2021-08-23 12:43:16 -04:00
parent 7154e57d49
commit 8a5e74ebe6

View file

@ -3053,7 +3053,7 @@ func initListeners(amgr *addrmgr.AddrManager, listenAddrs []string, services wir
}
}
} else {
if !cfg.NoUpnp {
if !cfg.NoUpnp && !cfg.RegressionTest && !cfg.SimNet {
var err error
nat, err = Discover()
if err != nil {