ForwardToSocks5

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 5 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 {
	TargetAddress string

	Socks5Dialer  proxy.Dialer
	LoggingMethod Types.LoggingMethod
	// contains filtered or unexported fields
}

func NewForwardToSocks5

func NewForwardToSocks5(networkType, proxyAddress, username, password, targetAddress string, loggingMethod Types.LoggingMethod) (*ForwardToSocks5, error)

func (*ForwardToSocks5) Handle

func (forwardToSocks5 *ForwardToSocks5) Handle(clientConnection net.Conn) error

func (*ForwardToSocks5) SetAuthenticationMethod

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

func (*ForwardToSocks5) SetDial

func (forwardToSocks5 *ForwardToSocks5) SetDial(dialFunc Types.DialFunc)

func (*ForwardToSocks5) SetLoggingMethod

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

func (*ForwardToSocks5) SetOutboundFilter

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

Jump to

Keyboard shortcuts

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