raise exception on OSError during accept
This commit is contained in:
parent
8bff4c79d9
commit
f50dada999
|
@ -302,4 +302,4 @@ proc accept*(puncher: TcpSyniPuncher, srcPort: Port, dstIp: IpAddress,
|
|||
else:
|
||||
raise newException(PunchHoleError, "timeout")
|
||||
except OSError as e:
|
||||
echo &"accepting connections from {dstIP}:{dstPorts[0].int} failed: ", e.msg
|
||||
raise newException(PunchHoleError, e.msg)
|
||||
|
|
Loading…
Reference in New Issue