Documentation ¶
Index ¶
- Constants
- func KeepAlive(resolver *resolve.Resolver)
- func ServeDNS(bindAddr string, dnsServer DNSServer)
- func ServeHTTP(bindAddr string, dialer *dial.Dialer)
- func ServeShadowsocks(dialer *dial.Dialer, url string)
- func ServeSocks5(bindAddr string, dialer *dial.Dialer, resolver *resolve.Resolver, user string, ...)
- func ServeTCPForwarding(stack stack.Stack, bindAddress string, remoteAddress string)
- func ServeUDPForwarding(stack stack.Stack, bindAddress string, remoteAddress string)
- type DNSServer
- type UDPConnection
- type UDPForward
Constants ¶
View Source
const BufferSize = 40960
View Source
const DefaultTimeout = time.Minute * 5
Variables ¶
This section is empty.
Functions ¶
func ServeShadowsocks ¶ added in v0.7.0
func ServeSocks5 ¶
func ServeTCPForwarding ¶
Types ¶
type DNSServer ¶
type DNSServer struct {
// contains filtered or unexported fields
}
func NewDnsServer ¶ added in v0.6.0
func (DNSServer) CheckDnsHijack ¶ added in v0.6.0
type UDPConnection ¶
type UDPConnection struct {
// contains filtered or unexported fields
}
type UDPForward ¶
type UDPForward struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.