github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/option/shadowtls.go (about) 1 package option 2 3 type ShadowTLSInboundOptions struct { 4 ListenOptions 5 Version int `json:"version,omitempty"` 6 Password string `json:"password,omitempty"` 7 Users []ShadowTLSUser `json:"users,omitempty"` 8 Handshake ShadowTLSHandshakeOptions `json:"handshake,omitempty"` 9 HandshakeForServerName map[string]ShadowTLSHandshakeOptions `json:"handshake_for_server_name,omitempty"` 10 StrictMode bool `json:"strict_mode,omitempty"` 11 } 12 13 type ShadowTLSUser struct { 14 Name string `json:"name,omitempty"` 15 Password string `json:"password,omitempty"` 16 } 17 18 type ShadowTLSHandshakeOptions struct { 19 ServerOptions 20 DialerOptions 21 } 22 23 type ShadowTLSOutboundOptions struct { 24 DialerOptions 25 ServerOptions 26 Version int `json:"version,omitempty"` 27 Password string `json:"password,omitempty"` 28 TLS *OutboundTLSOptions `json:"tls,omitempty"` 29 }