Documentation ¶
Index ¶
- func ListDir(dirPth string, suffix string) (files []string, err error)
- type Config
- type Dialer
- func (rd *Dialer) AddDomainIP(domain, ip string) error
- func (rd *Dialer) Addr() string
- func (rd *Dialer) Check()
- func (rd *Dialer) Dial(network, addr string) (net.Conn, error)
- func (rd *Dialer) DialUDP(network, addr string) (pc net.PacketConn, writeTo net.Addr, err error)
- func (rd *Dialer) NextDialer(dstAddr string) proxy.Dialer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Forward []string StrategyConfig strategy.Config DNSServers []string IPSet string Domain []string IP []string CIDR []string // contains filtered or unexported fields }
Config , every rule dialer points to a rule file
type Dialer ¶
type Dialer struct {
// contains filtered or unexported fields
}
Dialer struct
func (*Dialer) AddDomainIP ¶
AddDomainIP used to update ipMap rules according to domainMap rule
Click to show internal directories.
Click to hide internal directories.