Skip to content

Commit

Permalink
desync: rmv unused / non-functional relaxed mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Aug 22, 2024
1 parent 0e8917b commit 840c927
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions intra/dialers/split_and_desync.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ const (
probeSize = 8
default_ttl = 64

// desync_relaxed enables relaxed mode, which lets connections go through without desync.
desync_relaxed = true
desync_http1_1str = "POST / HTTP/1.1\r\nHost: 10.0.0.1\r\nContent-Type: application/octet-stream\r\nContent-Length: 9999999\r\n\r\n"
// from: github.com/bol-van/zapret/blob/c369f11638/nfq/darkmagic.h#L214-L216
desync_max_ttl = 20
Expand Down Expand Up @@ -164,7 +162,6 @@ func tracert(d *protect.RDial, ipp netip.AddrPort, basePort int) (*net.UDPConn,
}
udpAddr.Port = basePort + ttl
_, err = uc.WriteToUDP(msgBuf[:], udpAddr)
// todo: continue if in relaxed mode?
if err != nil {
return uc, udpFD, err
}
Expand All @@ -188,9 +185,6 @@ func desyncWithTraceroute(d *protect.RDial, ipp netip.AddrPort) (*overwriteSplit
logeif(err)("desync: dialUDP %v %d: err? %v", ipp, udpFD, err)
if err != nil {
measureTTL = false
if !desync_relaxed {
return nil, err
}
}

proto := "tcp4"
Expand Down

1 comment on commit 840c927

@ignoramous
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#81

Please sign in to comment.