|
@@ -4,17 +4,18 @@ import (
|
|
|
"encoding/json"
|
|
|
|
|
|
E "github.com/sagernet/sing/common/exceptions"
|
|
|
+ "github.com/sagernet/sing/common/json/badjson"
|
|
|
)
|
|
|
|
|
|
type ShadowTLSInboundOptions struct {
|
|
|
ListenOptions
|
|
|
- Version int `json:"version,omitempty"`
|
|
|
- Password string `json:"password,omitempty"`
|
|
|
- Users []ShadowTLSUser `json:"users,omitempty"`
|
|
|
- Handshake ShadowTLSHandshakeOptions `json:"handshake,omitempty"`
|
|
|
- HandshakeForServerName map[string]ShadowTLSHandshakeOptions `json:"handshake_for_server_name,omitempty"`
|
|
|
- StrictMode bool `json:"strict_mode,omitempty"`
|
|
|
- WildcardSNI WildcardSNI `json:"wildcard_sni,omitempty"`
|
|
|
+ Version int `json:"version,omitempty"`
|
|
|
+ Password string `json:"password,omitempty"`
|
|
|
+ Users []ShadowTLSUser `json:"users,omitempty"`
|
|
|
+ Handshake ShadowTLSHandshakeOptions `json:"handshake,omitempty"`
|
|
|
+ HandshakeForServerName *badjson.TypedMap[string, ShadowTLSHandshakeOptions] `json:"handshake_for_server_name,omitempty"`
|
|
|
+ StrictMode bool `json:"strict_mode,omitempty"`
|
|
|
+ WildcardSNI WildcardSNI `json:"wildcard_sni,omitempty"`
|
|
|
}
|
|
|
|
|
|
type WildcardSNI int
|