MTU to log, not stdout.

This commit is contained in:
David Fifield
2020-04-18 14:33:39 -06:00
parent ea824f3658
commit 700291d6a1
+1 -1
View File
@@ -350,7 +350,7 @@ func run(domain dns.Name, localAddr, udpAddr string) error {
if mtu < 80 {
return fmt.Errorf("domain %s leaves only %d bytes for payload", domain, mtu)
}
fmt.Printf("MTU %d\n", mtu)
log.Printf("MTU %d\n", mtu)
if rc := conn.SetMtu(mtu); !rc {
panic(rc)
}