Documentation ¶
Index ¶
- Variables
- func HandleEcho(client net.Conn)
- func InitSecretKey()
- func KCPClient()
- func KCPDemo()
- func KCPEncryptedLocalServe()
- func KCPEncryptedRemoteServe()
- func KCPEncryptedServe()
- func KCPLocalCompatSocks5Serve()
- func KCPLocalServe()
- func KCPRemoteServe()
- func KCPServe()
- func KCPServer()
- func PureRelayKCPToTCP(client net.Conn)
- func PureRelayTCPToKCP(client net.Conn)
- func RelayKCPToTCP(client net.Conn)
- func RelayProcess(client net.Conn, remoteAddr string, role string)
- func RelayServe()
- func RelayTCPToEncryptedKCP(client net.Conn)
- func RelayTCPToKCP(client net.Conn)
- func ReverseEncryptProxyProcess(client net.Conn)
- func ReverseProxyProcess(client net.Conn)
- func Serve()
- func Socks4Connect(client net.Conn) (dstConn net.Conn, err error)
- func Socks4Process(client net.Conn)
- func Socks5Auth(client net.Conn) (err error)
- func Socks5Connect(client net.Conn) (dstConn net.Conn, err error)
- func Socks5DecryptProcess(client net.Conn)
- func Socks5Forward(client, target net.Conn)
- func Socks5Process(client net.Conn)
- func Socks5UserAuth(client net.Conn) (err error)
- func StreamForward(client, target CipherStream)
- type Chacha20Stream
- type CipherStream
- type KCPConfig
- type Socks5UserAuthInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalConfig = KCPConfig{}
View Source
var SecretKey string
View Source
var SecretKeyByte [32]byte
View Source
var UserAuthInfo = Socks5UserAuthInfo{ Username: []byte("YOUR_PROXY_LOGIN"), Password: []byte("YOUR_PROXY_PASSWORD"), }
Functions ¶
func HandleEcho ¶
func InitSecretKey ¶
func InitSecretKey()
func KCPEncryptedLocalServe ¶
func KCPEncryptedLocalServe()
func KCPEncryptedRemoteServe ¶
func KCPEncryptedRemoteServe()
func KCPEncryptedServe ¶
func KCPEncryptedServe()
func KCPLocalCompatSocks5Serve ¶
func KCPLocalCompatSocks5Serve()
func KCPLocalServe ¶
func KCPLocalServe()
func KCPRemoteServe ¶
func KCPRemoteServe()
func PureRelayKCPToTCP ¶ added in v0.1.4
func PureRelayTCPToKCP ¶ added in v0.1.4
func RelayKCPToTCP ¶
func RelayServe ¶
func RelayServe()
func RelayTCPToEncryptedKCP ¶
func RelayTCPToKCP ¶
func ReverseProxyProcess ¶
func Socks4Process ¶
func Socks5Auth ¶
func Socks5DecryptProcess ¶
func Socks5Forward ¶
func Socks5Process ¶
func Socks5UserAuth ¶
func StreamForward ¶
func StreamForward(client, target CipherStream)
Types ¶
type Chacha20Stream ¶
type Chacha20Stream struct {
// contains filtered or unexported fields
}
func NewChacha20Stream ¶
func NewChacha20Stream(key []byte, conn net.Conn) (*Chacha20Stream, error)
func (*Chacha20Stream) Close ¶
func (s *Chacha20Stream) Close() error
type CipherStream ¶
type Socks5UserAuthInfo ¶
Click to show internal directories.
Click to hide internal directories.