mirror of
https://github.com/tladesignz/dnstt.git
synced 2026-10-10 08:08:14 +03:00
Check for error from SetMtu.
This commit is contained in:
@@ -351,7 +351,9 @@ func run(domain dns.Name, localAddr, udpAddr string) error {
|
||||
return fmt.Errorf("domain %s leaves only %d bytes for payload", domain, mtu)
|
||||
}
|
||||
fmt.Printf("MTU %d\n", mtu)
|
||||
conn.SetMtu(mtu)
|
||||
if rc := conn.SetMtu(mtu); !rc {
|
||||
panic(rc)
|
||||
}
|
||||
|
||||
// Start a smux session on the KCP conn.
|
||||
smuxConfig := smux.DefaultConfig()
|
||||
|
||||
Reference in New Issue
Block a user