Documentation
¶
Index ¶
- func NewForward(targetNetwork, targetAddress string, dialTLSConfig *tls.Config) servers.Protocol
- type Forward
- func (f *Forward) Handle(clientConnection net.Conn) error
- func (f *Forward) SetAuthenticationMethod(_ servers.AuthenticationMethod)
- func (f *Forward) SetDial(dialFunc servers.DialFunc)
- func (f *Forward) SetListen(_ servers.ListenFunc)
- func (f *Forward) SetListenAddress(address net.Addr)
- func (f *Forward) SetSniffers(incoming, outgoing io.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Forward ¶
type Forward struct { TargetNetwork string TargetAddress string DialFunc servers.DialFunc ListenAddress *net.TCPAddr IncomingSniffer, OutgoingSniffer io.Writer DialTLSConfig *tls.Config }
func (*Forward) SetAuthenticationMethod ¶
func (f *Forward) SetAuthenticationMethod(_ servers.AuthenticationMethod)
func (*Forward) SetListen ¶
func (f *Forward) SetListen(_ servers.ListenFunc)
func (*Forward) SetListenAddress ¶
func (*Forward) SetSniffers ¶
Click to show internal directories.
Click to hide internal directories.