From 8a5e74ebe6e9c87042b26c287c28a9edced8e45c Mon Sep 17 00:00:00 2001 From: Brannon King Date: Mon, 23 Aug 2021 12:43:16 -0400 Subject: [PATCH] Disable UPnP on regtest and simnet --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {