1
0
mirror of https://github.com/nitezs/sub2sing-box.git synced 2024-12-24 12:24:41 -05:00
sub2sing-box/model/tls.go

41 lines
1.8 KiB
Go
Raw Normal View History

2024-03-10 15:13:42 -04:00
package model
type OutboundTLSOptions struct {
Enabled bool `json:"enabled,omitempty"`
DisableSNI bool `json:"disable_sni,omitempty"`
ServerName string `json:"server_name,omitempty"`
Insecure bool `json:"insecure,omitempty"`
2024-03-11 12:13:59 -04:00
ALPN Listable[string] `json:"alpn,omitempty"`
2024-03-10 15:13:42 -04:00
MinVersion string `json:"min_version,omitempty"`
MaxVersion string `json:"max_version,omitempty"`
2024-03-11 12:13:59 -04:00
CipherSuites Listable[string] `json:"cipher_suites,omitempty"`
Certificate Listable[string] `json:"certificate,omitempty"`
2024-03-10 15:13:42 -04:00
CertificatePath string `json:"certificate_path,omitempty"`
ECH *OutboundECHOptions `json:"ech,omitempty"`
UTLS *OutboundUTLSOptions `json:"utls,omitempty"`
Reality *OutboundRealityOptions `json:"reality,omitempty"`
}
type OutboundECHOptions struct {
2024-03-11 12:13:59 -04:00
Enabled bool `json:"enabled,omitempty"`
PQSignatureSchemesEnabled bool `json:"pq_signature_schemes_enabled,omitempty"`
DynamicRecordSizingDisabled bool `json:"dynamic_record_sizing_disabled,omitempty"`
Config Listable[string] `json:"config,omitempty"`
ConfigPath string `json:"config_path,omitempty"`
2024-03-10 15:13:42 -04:00
}
type OutboundUTLSOptions struct {
Enabled bool `json:"enabled,omitempty"`
Fingerprint string `json:"fingerprint,omitempty"`
}
type OutboundRealityOptions struct {
Enabled bool `json:"enabled,omitempty"`
PublicKey string `json:"public_key,omitempty"`
ShortID string `json:"short_id,omitempty"`
}
type OutboundTLSOptionsContainer struct {
TLS *OutboundTLSOptions `json:"tls,omitempty"`
}