Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DCConnector ¶
type DCConnector interface { // Connect to the specified DC by it's number (may be negative) ConnectDC(dc int16) (c net.Conn, err error) // Connects to specific host (for fallback connections) ConnectHost(host string) (c net.Conn, err error) }
Connects client to the specified DC or fallback host
type DcDirectConnector ¶
type DcDirectConnector struct {
// contains filtered or unexported fields
}
Directly connects client
func NewDcDirectConnector ¶
func NewDcDirectConnector(allowIPv6 bool) *DcDirectConnector
creates a new DcDirectConnector
func (*DcDirectConnector) ConnectDC ¶
func (dcc *DcDirectConnector) ConnectDC(dc int16) (c net.Conn, err error)
Connects client to the specified DC directly
func (*DcDirectConnector) ConnectHost ¶
func (dcc *DcDirectConnector) ConnectHost(host string) (net.Conn, error)
type DcSocksConnector ¶
type DcSocksConnector struct {
// contains filtered or unexported fields
}
Connects client over SOCKS5 proxy
func NewDcSocksConnector ¶
func NewDcSocksConnector(allowIPv6 bool, socks5 string, user, pass *string) *DcSocksConnector
Create a new DcSocksConnector
func (*DcSocksConnector) ConnectDC ¶
func (dsc *DcSocksConnector) ConnectDC(dc int16) (c net.Conn, err error)
connect to the specified DC over socks5
func (*DcSocksConnector) ConnectHost ¶
func (dsc *DcSocksConnector) ConnectHost(host string) (net.Conn, error)
type ObfuscatedHandler ¶
type ObfuscatedHandler struct {
// contains filtered or unexported fields
}
func NewObfuscatedHandler ¶
func NewObfuscatedHandler(cfg *config.Config) *ObfuscatedHandler
func (*ObfuscatedHandler) HandleObfuscated ¶
func (o *ObfuscatedHandler) HandleObfuscated(stream net.Conn) (err error)
Click to show internal directories.
Click to hide internal directories.