ForwardToSocks5

package
v0.942.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForwardToSocks5

type ForwardToSocks5 struct {
	TargetHost    string
	TargetPort    string
	Socks5Dialer  proxy.Dialer
	LoggingMethod Types.LoggingMethod
	Tries         int
	Timeout       time.Duration
	InboundFilter Types.IOFilter
}

func (*ForwardToSocks5) Handle

func (forwardToSocks5 *ForwardToSocks5) Handle(
	clientConnection net.Conn,
	clientConnectionReader *bufio.Reader,
	clientConnectionWriter *bufio.Writer) error

func (*ForwardToSocks5) SetAuthenticationMethod

func (forwardToSocks5 *ForwardToSocks5) SetAuthenticationMethod(_ Types.AuthenticationMethod) error

func (*ForwardToSocks5) SetInboundFilter

func (forwardToSocks5 *ForwardToSocks5) SetInboundFilter(filter Types.IOFilter) error

func (*ForwardToSocks5) SetLoggingMethod

func (forwardToSocks5 *ForwardToSocks5) SetLoggingMethod(loggingMethod Types.LoggingMethod) error

func (ForwardToSocks5) SetOutboundFilter

func (ForwardToSocks5) SetOutboundFilter(_ Types.IOFilter) error

func (*ForwardToSocks5) SetTimeout

func (forwardToSocks5 *ForwardToSocks5) SetTimeout(timeout time.Duration) error

func (*ForwardToSocks5) SetTries

func (forwardToSocks5 *ForwardToSocks5) SetTries(tries int) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL