Documentation ¶
Overview ¶
interceptor acts as an intermediary between a local SOCKS proxy intercepting VPN traffic and Lantern
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTooManyFailures = errors.New("Too many connection failures") ErrNoSocksProxy = errors.New("Unable to start local SOCKS proxy") ErrDialTimeout = errors.New("Error dialing tunnel: timeout") )
Errors introduced by the interceptor service
Functions ¶
This section is empty.
Types ¶
type InterceptedConn ¶
func (*InterceptedConn) Do ¶
func (ic *InterceptedConn) Do() error
type Interceptor ¶
type Interceptor struct { // Maximum duration for full request writing (including body). // // By default request write timeout is unlimited. WriteTimeout time.Duration ReadTimeout time.Duration Dial DialFunc // contains filtered or unexported fields }
Interceptor is responsible for intercepting traffic on the VPN interface.
func (*Interceptor) Stop ¶
func (i *Interceptor) Stop()
Stop closes the SOCKS listener and stats service it also closes all pending connections
Click to show internal directories.
Click to hide internal directories.