Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient *dns.Client
View Source
var ResolveUDPAddr = func(network string, addr string) (*net.UDPAddr, error) { host, port, err := net.SplitHostPort(addr) if err != nil { return nil, fmt.Errorf("split host port failed: %w", err) } numPort, err := strconv.Atoi(port) if err != nil { return nil, fmt.Errorf("parse port failed: %w", err) } ip, err := resolveIPAddr(host) if err != nil { return nil, fmt.Errorf("resolve ip addr failed: %w", err) } return &net.UDPAddr{IP: ip, Port: numPort}, nil }
View Source
var RoaFinder string
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.