diff --git a/server.go b/server.go index 4bc94638..b2fc2d71 100644 --- a/server.go +++ b/server.go @@ -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 {