Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "TLS"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a tls client
func (*Client) DialPacket ¶
type Config ¶
type Config struct { RemoteHost string `json:"remote_addr" yaml:"remote-addr"` RemotePort int `json:"remote_port" yaml:"remote-port"` TLS TLSConfig `json:"ssl" yaml:"ssl"` Websocket WebsocketConfig `json:"websocket" yaml:"websocket"` }
type Server ¶
type Server struct { PreferServerCipher bool // contains filtered or unexported fields }
Server is a tls server
func (*Server) AcceptPacket ¶
type TLSConfig ¶
type TLSConfig struct { Verify bool `json:"verify" yaml:"verify"` VerifyHostName bool `json:"verify_hostname" yaml:"verify-hostname"` CertPath string `json:"cert" yaml:"cert"` KeyPath string `json:"key" yaml:"key"` KeyPassword string `json:"key_password" yaml:"key-password"` Cipher string `json:"cipher" yaml:"cipher"` PreferServerCipher bool `json:"prefer_server_cipher" yaml:"prefer-server-cipher"` SNI string `json:"sni" yaml:"sni"` HTTPResponseFileName string `json:"plain_http_response" yaml:"plain-http-response"` FallbackHost string `json:"fallback_addr" yaml:"fallback-addr"` FallbackPort int `json:"fallback_port" yaml:"fallback-port"` ReuseSession bool `json:"reuse_session" yaml:"reuse-session"` ALPN []string `json:"alpn" yaml:"alpn"` Curves string `json:"curves" yaml:"curves"` Fingerprint string `json:"fingerprint" yaml:"fingerprint"` KeyLogPath string `json:"key_log" yaml:"key-log"` CertCheckRate int `json:"cert_check_rate" yaml:"cert-check-rate"` }
type WebsocketConfig ¶
type WebsocketConfig struct {
Enabled bool `json:"enabled" yaml:"enabled"`
}
Click to show internal directories.
Click to hide internal directories.