Documentation ¶
Index ¶
Constants ¶
View Source
const ServiceName = "v2socks"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateOptions ¶
type HeaderItem ¶
type HostportOptions ¶
type Options ¶
type Options struct { ListenAddr string `yaml:"on"` Proxy chrome.Proxy `yaml:"over"` ForwardServer HostportOptions `yaml:"-"` URL string Type string Protocol string `yaml:"-"` Transport string `yaml:"-"` Security string `yaml:"-"` ProtocolOptions `yaml:",inline"` TransportOptions `yaml:",inline"` SecurityOptions `yaml:",inline"` Mux struct { Enabled bool `json:"enabled,omitempty"` Concurrency int `json:"concurrency,omitempty"` } Dial chrome.DialOptions Relay chrome.RelayOptions // contains filtered or unexported fields }
type ProtocolOptions ¶
type ProtocolOptions struct { SHADOWSOCKS struct { HostportOptions `yaml:",inline"` Method string `json:"method"` Password string `json:"password"` } SHADOWSOCKS2022 struct { HostportOptions `yaml:",inline"` Method string `json:"method"` PSK string `json:"psk"` IPSK []string `json:"ipsk,omitempty"` } TROJAN struct { HostportOptions `yaml:",inline"` Password string `json:"password"` } VLESS, VMESS struct { HostportOptions `yaml:",inline"` UUID string `json:"uuid"` } }
type SecurityOptions ¶
type SecurityOptions struct { TLS struct { ServerName string `json:"serverName,omitempty"` Certificate []CertificateOptions `json:"certificate,omitempty" yaml:"-"` CertFile chrome.EnvString `json:"-"` } }
type TransportOptions ¶
type TransportOptions struct { GRPC struct { ServiceName string `json:"serviceName"` } HTTPUPGRADE struct { Path string `json:"path,omitempty"` Host string `json:"host,omitempty"` } TCP struct{} WS struct { Path string `json:"path,omitempty"` Header []HeaderItem `json:"header,omitempty"` } }
Click to show internal directories.
Click to hide internal directories.