Documentation ¶
Index ¶
Constants ¶
View Source
const ( OptionChunkStream byte = 1 OptionChunkMasking byte = 4 )
Request Options
View Source
const ( CommandTCP byte = 1 CommandUDP byte = 2 )
Command types
View Source
const ( AtypIPv4 byte = 1 AtypDomainName byte = 2 AtypIPv6 byte = 3 )
Addr types
View Source
const (
IDBytesLen = 16
)
ID cmdKey length
View Source
const Version byte = 1
Version of vmess
Variables ¶
View Source
var CipherMapping = map[string]byte{ "none": SecurityNone, "aes-128-gcm": SecurityAES128GCM, "chacha20-poly1305": SecurityCHACHA20POLY1305, }
CipherMapping return
Functions ¶
func NewWebsocketConn ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is vmess connection generator
type Config ¶
type Config struct { UUID string AlterID uint16 Security string TLS bool HostName string Port string NetWork string WebSocketPath string WebSocketHeaders map[string]string SkipCertVerify bool SessionCache tls.ClientSessionCache }
Config of vmess
Click to show internal directories.
Click to hide internal directories.