Documentation
¶
Index ¶
- Constants
- func GenerateX509Cer(cerType uint) *x509.Certificate
- func TlsCertSetup() (serverTLSConf *tls.Config, clientTLSConf *tls.Config, err error)
- type Config
- type Host
- type Proxy
- func (p *Proxy) New(connId uint64, conn net.Conn, lAddr, rAddr *net.TCPAddr) *Proxy
- func (p *Proxy) SetBufferSize(buffSize uint64)
- func (p *Proxy) SetEnableTLS(enabled bool)
- func (p *Proxy) SetSNIHost(hostname string)
- func (p *Proxy) SetServerHost(server string)
- func (p *Proxy) SetServerProxyMode(enabled bool)
- func (p *Proxy) SetlPayload(lPayload string)
- func (p *Proxy) SetrPayload(rPayload string)
- func (p *Proxy) Start()
- type WebForwarder
Constants ¶
View Source
const ( CerTypeCA = 0 CerTypeCert = 1 )
Variables ¶
This section is empty.
Functions ¶
func GenerateX509Cer ¶ added in v1.1.0
func GenerateX509Cer(cerType uint) *x509.Certificate
Types ¶
type Config ¶
type Config struct { BufferSize uint64 ServerProxyMode bool ProxyInfo string LocalAddress string RemoteAddress string LocalAddressTCP *net.TCPAddr RemoteAddressTCP *net.TCPAddr ServerHost string DisableServerResolv bool ConnectionInfo string TLSEnabled bool SNIHost string LocalPayload string RemotePayload string }
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) SetBufferSize ¶
func (*Proxy) SetEnableTLS ¶
func (*Proxy) SetSNIHost ¶
func (*Proxy) SetServerHost ¶
func (*Proxy) SetServerProxyMode ¶
func (*Proxy) SetlPayload ¶
func (*Proxy) SetrPayload ¶
type WebForwarder ¶ added in v1.1.0
type WebForwarder struct {
// contains filtered or unexported fields
}
func NewWebForwarder ¶ added in v1.1.0
func NewWebForwarder(connId uint64, src net.Conn) *WebForwarder
func (*WebForwarder) SetDstAddress ¶ added in v1.1.0
func (fwd *WebForwarder) SetDstAddress(dstAddress string)
func (*WebForwarder) Start ¶ added in v1.1.0
func (fwd *WebForwarder) Start()
Click to show internal directories.
Click to hide internal directories.