diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-03-14 23:08:15 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-03-14 23:08:15 +0800 |
commit | 64c8e2f2ca01de506146027cccf2fafea03b7f09 (patch) | |
tree | 3a86356b80d1e0a3c8a75da8680ec8de3cff1d7b /p2p/nat | |
parent | 8a3ce5450a309866c4cb1acc1e783324f8597293 (diff) | |
download | dexon-64c8e2f2ca01de506146027cccf2fafea03b7f09.tar dexon-64c8e2f2ca01de506146027cccf2fafea03b7f09.tar.gz dexon-64c8e2f2ca01de506146027cccf2fafea03b7f09.tar.bz2 dexon-64c8e2f2ca01de506146027cccf2fafea03b7f09.tar.lz dexon-64c8e2f2ca01de506146027cccf2fafea03b7f09.tar.xz dexon-64c8e2f2ca01de506146027cccf2fafea03b7f09.tar.zst dexon-64c8e2f2ca01de506146027cccf2fafea03b7f09.zip |
p2p/nat: fix #2291, NAT discovery did't abort on failure
Diffstat (limited to 'p2p/nat')
-rw-r--r-- | p2p/nat/natupnp.go | 1 |
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 |