From 64c8e2f2ca01de506146027cccf2fafea03b7f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Mon, 14 Mar 2016 17:08:15 +0200 Subject: [PATCH] p2p/nat: fix #2291, NAT discovery did't abort on failure --- p2p/nat/natupnp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/nat/natupnp.go b/p2p/nat/natupnp.go index 890a350434..804396e94d 100644 --- a/p2p/nat/natupnp.go +++ b/p2p/nat/natupnp.go @@ -139,6 +139,7 @@ func discoverUPnP() Interface { func discover(out chan<- *upnp, target string, matcher func(*goupnp.RootDevice, goupnp.ServiceClient) *upnp) { devs, err := goupnp.DiscoverDevices(target) if err != nil { + out <- nil return } found := false