mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
proxy: optimize timeout handling in udp copy
This commit is contained in:
1 parent
4b313a3fe1
commit
2ad3498abd
15 files changed
+46
-41
No files matched your search
@@ -19,7 +19,7 @@ func discovery(intf *net.Interface) (found bool) {
|
||||
}
|
||||
defer pc.Close()
|
||||
|
||||
discovery, err := dhcpv4.NewDiscovery(intf.HardwareAddr, dhcpv4.WithBroadcast(true), dhcpv4.WithRequestedOptions(dhcpv4.OptionDomainNameServer))
|
||||
discovery, err := dhcpv4.NewDiscovery(intf.HardwareAddr, dhcpv4.WithBroadcast(true))
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user