aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-03-14 23:08:15 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-03-14 23:08:15 +0800
commit64c8e2f2ca01de506146027cccf2fafea03b7f09 (patch)
tree3a86356b80d1e0a3c8a75da8680ec8de3cff1d7b /p2p
parent8a3ce5450a309866c4cb1acc1e783324f8597293 (diff)
downloadgo-tangerine-64c8e2f2ca01de506146027cccf2fafea03b7f09.tar.gz
go-tangerine-64c8e2f2ca01de506146027cccf2fafea03b7f09.tar.zst
go-tangerine-64c8e2f2ca01de506146027cccf2fafea03b7f09.zip
p2p/nat: fix #2291, NAT discovery did't abort on failure
Diffstat (limited to 'p2p')
-rw-r--r--p2p/nat/natupnp.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/p2p/nat/natupnp.go b/p2p/nat/natupnp.go
index 890a35043..804396e94 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