dns: rewrite codes

This commit is contained in:
nadoo committed 2018-07-29 23:44:23 +08:00
1 parent 7dc21908d5
commit d5e3ea539a
7 files changed
+644 -482

No files matched your search

-1
View File
@@ -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 {