mirror of https://github.com/status-im/nim-eth.git
UPnP: port mapping check no longer a show stopper
This commit is contained in:
parent
ecc1a995aa
commit
20abba71d0
|
@ -116,9 +116,8 @@ proc doPortMapping(tcpPort, udpPort: Port, description: string): Option[(Port, P
|
|||
let cres = upnp.getSpecificPortMapping(externalPort = $port,
|
||||
protocol = protocol)
|
||||
if cres.isErr:
|
||||
error "UPnP port mapping check", msg = cres.error
|
||||
return
|
||||
else:
|
||||
warn "UPnP port mapping check failed. Assuming the check itself is broken and the port mapping was done.", msg = cres.error
|
||||
|
||||
let extPort = Port(parseUInt(cres.value.externalPort))
|
||||
debug "UPnP: added port mapping", externalPort = extPort, internalPort = port, protocol = protocol
|
||||
case protocol:
|
||||
|
|
Loading…
Reference in New Issue