Documentation ¶
Index ¶
Constants ¶
View Source
const ( DialTimeOut = 8 * time.Second MinMtuVal = 1 << 12 )
View Source
const ( COMMON_DNS_PORT = 53 ExpireTime = time.Minute * 3 )
View Source
const (
MaxDnsQueryCnt = 1 << 11
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnProtector ¶
type ConnProtector func(fd uintptr)
type IpRules ¶ added in v1.1.3
func IPRuleInst ¶ added in v1.1.3
func IPRuleInst() *IpRules
func (*IpRules) LoadInners ¶ added in v1.1.3
func (*IpRules) LoadMustHits ¶ added in v1.1.3
type Rule ¶
type Rule struct {
// contains filtered or unexported fields
}
func (*Rule) DirectIPAndHOst ¶ added in v1.1.17
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) DestroyStack() }
func Inst ¶
func Inst() SimpleStack
Source Files ¶
Click to show internal directories.
Click to hide internal directories.