2022-07-25 08:14:09 +08:00
|
|
|
package option
|
|
|
|
|
|
|
|
type InboundTLSOptions struct {
|
2023-02-25 16:24:08 +08:00
|
|
|
Enabled bool `json:"enabled,omitempty"`
|
|
|
|
ServerName string `json:"server_name,omitempty"`
|
|
|
|
Insecure bool `json:"insecure,omitempty"`
|
|
|
|
ALPN Listable[string] `json:"alpn,omitempty"`
|
|
|
|
MinVersion string `json:"min_version,omitempty"`
|
|
|
|
MaxVersion string `json:"max_version,omitempty"`
|
|
|
|
CipherSuites Listable[string] `json:"cipher_suites,omitempty"`
|
2023-08-29 13:43:42 +08:00
|
|
|
Certificate Listable[string] `json:"certificate,omitempty"`
|
2023-02-25 16:24:08 +08:00
|
|
|
CertificatePath string `json:"certificate_path,omitempty"`
|
2023-08-29 13:43:42 +08:00
|
|
|
Key Listable[string] `json:"key,omitempty"`
|
2023-02-25 16:24:08 +08:00
|
|
|
KeyPath string `json:"key_path,omitempty"`
|
|
|
|
ACME *InboundACMEOptions `json:"acme,omitempty"`
|
2023-08-29 13:43:42 +08:00
|
|
|
ECH *InboundECHOptions `json:"ech,omitempty"`
|
2023-02-25 16:24:08 +08:00
|
|
|
Reality *InboundRealityOptions `json:"reality,omitempty"`
|
2022-08-19 15:42:57 +08:00
|
|
|
}
|
|
|
|
|
2022-07-25 08:14:09 +08:00
|
|
|
type OutboundTLSOptions struct {
|
2023-02-25 16:24:08 +08:00
|
|
|
Enabled bool `json:"enabled,omitempty"`
|
|
|
|
DisableSNI bool `json:"disable_sni,omitempty"`
|
|
|
|
ServerName string `json:"server_name,omitempty"`
|
|
|
|
Insecure bool `json:"insecure,omitempty"`
|
|
|
|
ALPN Listable[string] `json:"alpn,omitempty"`
|
|
|
|
MinVersion string `json:"min_version,omitempty"`
|
|
|
|
MaxVersion string `json:"max_version,omitempty"`
|
|
|
|
CipherSuites Listable[string] `json:"cipher_suites,omitempty"`
|
|
|
|
Certificate string `json:"certificate,omitempty"`
|
|
|
|
CertificatePath string `json:"certificate_path,omitempty"`
|
|
|
|
ECH *OutboundECHOptions `json:"ech,omitempty"`
|
|
|
|
UTLS *OutboundUTLSOptions `json:"utls,omitempty"`
|
|
|
|
Reality *OutboundRealityOptions `json:"reality,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type InboundRealityOptions struct {
|
|
|
|
Enabled bool `json:"enabled,omitempty"`
|
|
|
|
Handshake InboundRealityHandshakeOptions `json:"handshake,omitempty"`
|
|
|
|
PrivateKey string `json:"private_key,omitempty"`
|
|
|
|
ShortID Listable[string] `json:"short_id,omitempty"`
|
|
|
|
MaxTimeDifference Duration `json:"max_time_difference,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type InboundRealityHandshakeOptions struct {
|
|
|
|
ServerOptions
|
|
|
|
DialerOptions
|
2022-09-09 18:19:50 +08:00
|
|
|
}
|
|
|
|
|
2023-08-29 13:43:42 +08:00
|
|
|
type InboundECHOptions struct {
|
|
|
|
Enabled bool `json:"enabled,omitempty"`
|
|
|
|
PQSignatureSchemesEnabled bool `json:"pq_signature_schemes_enabled,omitempty"`
|
|
|
|
DynamicRecordSizingDisabled bool `json:"dynamic_record_sizing_disabled,omitempty"`
|
|
|
|
Key Listable[string] `json:"ech_keys,omitempty"`
|
|
|
|
KeyPath string `json:"ech_keys_path,omitempty"`
|
|
|
|
}
|
|
|
|
|
2022-09-09 18:19:50 +08:00
|
|
|
type OutboundECHOptions struct {
|
2023-08-29 13:43:42 +08: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"`
|
2022-07-25 08:14:09 +08:00
|
|
|
}
|
2022-09-10 10:27:00 +08:00
|
|
|
|
|
|
|
type OutboundUTLSOptions struct {
|
|
|
|
Enabled bool `json:"enabled,omitempty"`
|
|
|
|
Fingerprint string `json:"fingerprint,omitempty"`
|
|
|
|
}
|
2023-02-25 16:24:08 +08:00
|
|
|
|
|
|
|
type OutboundRealityOptions struct {
|
|
|
|
Enabled bool `json:"enabled,omitempty"`
|
|
|
|
PublicKey string `json:"public_key,omitempty"`
|
|
|
|
ShortID string `json:"short_id,omitempty"`
|
|
|
|
}
|