mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-12 23:36:43 -05:00
f8ac919d66
* Move `filterIP` from `hosts.go` to `dnscommon.go` * Implement adding pools for fakedns.HolderMulti * Implement per-client fakedns for DNS app * Remove `dns.ClientWithIPOption` and replace with new programming model * Implement JSON config support for new fakedns config * Fix lint and tests * Fix some codacy analysis
51 lines
1.2 KiB
Go
51 lines
1.2 KiB
Go
package net
|
|
|
|
import "net"
|
|
|
|
const (
|
|
IPv4len = net.IPv4len
|
|
IPv6len = net.IPv6len
|
|
)
|
|
|
|
var (
|
|
CIDRMask = net.CIDRMask
|
|
Dial = net.Dial
|
|
DialTCP = net.DialTCP
|
|
DialUDP = net.DialUDP
|
|
DialUnix = net.DialUnix
|
|
FileConn = net.FileConn
|
|
Listen = net.Listen
|
|
ListenTCP = net.ListenTCP
|
|
ListenUDP = net.ListenUDP
|
|
ListenUnix = net.ListenUnix
|
|
LookupIP = net.LookupIP
|
|
ParseCIDR = net.ParseCIDR
|
|
ParseIP = net.ParseIP
|
|
ResolveUDPAddr = net.ResolveUDPAddr
|
|
ResolveUnixAddr = net.ResolveUnixAddr
|
|
SplitHostPort = net.SplitHostPort
|
|
)
|
|
|
|
type (
|
|
Addr = net.Addr
|
|
AddrError = net.AddrError
|
|
Conn = net.Conn
|
|
Dialer = net.Dialer
|
|
Error = net.Error
|
|
IP = net.IP
|
|
IPMask = net.IPMask
|
|
IPNet = net.IPNet
|
|
ListenConfig = net.ListenConfig
|
|
Listener = net.Listener
|
|
PacketConn = net.PacketConn
|
|
Resolver = net.Resolver
|
|
TCPAddr = net.TCPAddr
|
|
TCPConn = net.TCPConn
|
|
TCPListener = net.TCPListener
|
|
UDPAddr = net.UDPAddr
|
|
UDPConn = net.UDPConn
|
|
UnixAddr = net.UnixAddr
|
|
UnixConn = net.UnixConn
|
|
UnixListener = net.UnixListener
|
|
)
|