Documentation ¶
Index ¶
- func NewClearTextDialer(s string, d proxy.Dialer) (proxy.Dialer, error)
- func NewClearTextServer(s string, p proxy.Proxy) (proxy.Server, error)
- func NewTrojanDialer(s string, d proxy.Dialer) (proxy.Dialer, error)
- func NewTrojanServer(s string, p proxy.Proxy) (proxy.Server, error)
- type PktConn
- type Trojan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClearTextDialer ¶ added in v0.12.0
NewClearTextDialer returns a trojan cleartext proxy dialer.
func NewClearTextServer ¶ added in v0.12.0
NewClearTextServer returns a trojan cleartext proxy server.
func NewTrojanDialer ¶
NewTrojanDialer returns a trojan proxy dialer.
Types ¶
type PktConn ¶
PktConn is a udp Packet.Conn.
func NewPktConn ¶
NewPktConn returns a PktConn.
type Trojan ¶
type Trojan struct {
// contains filtered or unexported fields
}
Trojan is a base trojan struct.
func (*Trojan) DialUDP ¶
func (s *Trojan) DialUDP(network, addr string) (net.PacketConn, error)
DialUDP connects to the given address via the proxy.
func (*Trojan) ListenAndServe ¶ added in v0.12.0
func (s *Trojan) ListenAndServe()
ListenAndServe listen and serves connections.
Click to show internal directories.
Click to hide internal directories.