bugfix: use ISS on active TCP connection

This commit is contained in:
soypat
2025-08-16 18:26:50 -03:00
parent 9cf4e35d2e
commit 0f20090d78
4 changed files with 12 additions and 4 deletions
+2 -1
View File
@@ -203,8 +203,9 @@ func run() (err error) {
if err != nil {
return err
}
const tcpDebugTimeout = 60 * time.Minute
target := netip.AddrPortFrom(addrs[0], 80)
conn, err := rstack.DoDialTCP(uint16(softRand&0xefff)+1024, target, internetTimeout, internetRetries)
conn, err := rstack.DoDialTCP(uint16(softRand&0xefff)+1024, target, tcpDebugTimeout, internetRetries)
if err != nil {
return fmt.Errorf("TCP failed: %w", err)
}