diff --git a/tcp_syni.nim b/tcp_syni.nim index 0587b21..651eda6 100644 --- a/tcp_syni.nim +++ b/tcp_syni.nim @@ -296,7 +296,7 @@ proc accept*(puncher: TcpSyniPuncher, srcPort: Port, dstIp: IpAddress, tcpSeqNumber: seqNum, tcpAckNumber: 0, tcpFlags: {SYN}, tcpWindowSize: 1452 * 10) echo &"[{ipPacket.ipAddrSrc}:{ipPacket.tcpPortSrc} -> {ipPacket.ipAddrDst}:{ipPacket.tcpPortDst}, SEQ {ipPacket.tcpSeqNumber}] injecting SYN" - asyncCheck rawFd.injectTcpPacket(ipPacket) + await rawFd.injectTcpPacket(ipPacket) closeSocket(rawFd) await attempt.future or sleepAsync(Timeout) await attempt.deleteFirewallRules()