Documentation ¶
Index ¶
- func Clean() error
- func ExcludeIP(ip net.IP) error
- func ExcludeURL(urls ...string) error
- func NewManager() *manager
- func Protect(fd int) error
- func ProtectUDPConn(c *net.UDPConn) error
- func RemoveExcludedIP(ip net.IP) error
- func RemoveExcludedURL(urls ...string) error
- func SetProtectFunc(f func(fd int) error)
- type Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExcludeURL ¶
ExcludeURL adds exception to route traffic directly for specified URL (host part is usually taken).
func NewManager ¶
func NewManager() *manager
NewManager creates a new instance of service that maintain routing table to match current state.
func ProtectUDPConn ¶
ProtectUDPConn protects provided UDP connection from going through the tunnel.
func RemoveExcludedIP ¶
RemoveExcludedIP removes IP based exception to route traffic directly.
func RemoveExcludedURL ¶
RemoveExcludedURL removes exception to route traffic directly for specified URL (host part is usually taken).
func SetProtectFunc ¶
SetProtectFunc sets the callback for using to protect provided connection from going through the tunnel.
Types ¶
Click to show internal directories.
Click to hide internal directories.