mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-10 18:17:16 +03:00
feat(masque): make TLS SNI configurable via server_name
MASQUE outbound previously hardcoded the TLS SNI to consumer-masque.cloudflareclient.com. Add a server_name field to the MASQUE outbound TLS options. When empty it falls back to the existing default (cloudflare.ConnectSNI), so existing configs are unaffected.
This commit is contained in:
@@ -22,6 +22,7 @@ type MASQUEOutboundOptions struct {
|
||||
}
|
||||
|
||||
type MASQUEOutboundTLSOptions struct {
|
||||
ServerName string `json:"server_name,omitempty"`
|
||||
Insecure bool `json:"insecure,omitempty"`
|
||||
CipherSuites badoption.Listable[string] `json:"cipher_suites,omitempty"`
|
||||
CurvePreferences badoption.Listable[CurvePreference] `json:"curve_preferences,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user