mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
dns: rewrite codes
This commit is contained in:
1 parent
7dc21908d5
commit
d5e3ea539a
7 files changed
+644
-482
No files matched your search
@@ -31,7 +31,6 @@ func (d *direct) Dial(network, addr string) (net.Conn, error) {
|
||||
return c, err
|
||||
}
|
||||
|
||||
// DialUDP connects to the given address via the proxy
|
||||
func (d *direct) DialUDP(network, addr string) (net.PacketConn, net.Addr, error) {
|
||||
pc, err := net.ListenPacket(network, "")
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user