Documentation
¶
Index ¶
Constants ¶
View Source
const ( DialTimeOut = 5 * time.Second MinMtuVal = 1 << 15 )
View Source
const ( COMMON_DNS_PORT = 53 COMMON_DNS_PORT2 = 443 COMMON_DNS_PORT3 = 853 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ByPassIPs ¶ added in v1.0.8
func ByPassInst ¶ added in v1.0.8
func ByPassInst() *ByPassIPs
type ConnProtector ¶
type ConnProtector func(fd uintptr)
type Rule ¶
type Rule struct {
// contains filtered or unexported fields
}
func (*Rule) ParseDns ¶
func (r *Rule) ParseDns(msg *dnsmessage.Message)
type SimpleStack ¶
type SimpleStack interface {
SetupStack(dev TunDev, w Wallet) error
WriteToStack(p []byte) (n int, err error)
}
func Inst ¶
func Inst() SimpleStack
Source Files
¶
Click to show internal directories.
Click to hide internal directories.