Versions in this module Expand all Collapse all v1 v1.4.1 Dec 24, 2021 Changes in this version + const AddrMask + var ErrCipherNotSupported = errors.New("cipher not supported") + var Socks5ConnectedRemote = []byte + type Channel struct + type Cipher interface + func PickCipher(name string, key []byte, password string) (Cipher, error) + type KcpServer struct + AcceptConn int + TcpListenPorts map[string]int + TunnelChan chan Channel + func NewKcpServer(config *utils.Config, kconfig *utils.KcpConfig) (kcpServer *KcpServer) + func (serve *KcpServer) Listen() + func (serve *KcpServer) ListenInTls(config *utils.Config) + func (serve *KcpServer) ListenMux(conn io.ReadWriteCloser) + func (serve *KcpServer) StopTunnel(host string) + func (serve *KcpServer) WithChannel(host, connectTo string) Channel + type PacketConnCipher interface + PacketConn func(net.PacketConn) net.PacketConn + type StreamConnCipher interface + NewStreamConn func(c net.Conn) *shadowaead.StreamConn + StreamConn func(net.Conn) net.Conn