Documentation
¶
Index ¶
Constants ¶
View Source
const ( SO_ORIGINAL_DST = 80 IP6T_SO_ORIGINAL_DST = 80 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TCPRedirect ¶
type TCPRedirect struct {
HyClient *core.Client
ListenAddr *net.TCPAddr
Timeout time.Duration
ConnFunc func(addr, reqAddr net.Addr)
ErrorFunc func(addr, reqAddr net.Addr, err error)
}
func NewTCPRedirect ¶
func (*TCPRedirect) ListenAndServe ¶
func (r *TCPRedirect) ListenAndServe() error
Click to show internal directories.
Click to hide internal directories.