TLSConfig constructor
const
TLSConfig({
- bool? allowInsecure,
- @JsonKey.new(name: 'certificates') List<
TLSCertConfig> ? certs, - String? serverName,
- @JsonKey.new(name: 'alpn') XrayStringList? alpn,
- bool? enableSessionResumption,
- bool? disableSystemRoot,
- String? minVersion,
- String? maxVersion,
- String? cipherSuites,
- String? fingerprint,
- @JsonKey.new(name: 'rejectUnknownSni') bool? rejectUnknownSNI,
- XrayStringList? curvePreferences,
- String? masterKeyLog,
- String? pinnedPeerCertSha256,
- String? verifyPeerCertByName,
- List<
String> ? verifyPeerCertInNames, - String? echServerKeys,
- String? echConfigList,
- ECHForceQuery? echForceQuery,
- @JsonKey.new(name: 'echSockopt') SocketConfig? echSocketSettings,
Implementation
const factory TLSConfig({
bool? allowInsecure,
@JsonKey(name: 'certificates') List<TLSCertConfig>? certs,
String? serverName,
@JsonKey(name: 'alpn') XrayStringList? alpn,
bool? enableSessionResumption,
bool? disableSystemRoot,
String? minVersion,
String? maxVersion,
String? cipherSuites,
String? fingerprint,
@JsonKey(name: 'rejectUnknownSni') bool? rejectUnknownSNI,
XrayStringList? curvePreferences,
String? masterKeyLog,
String? pinnedPeerCertSha256,
String? verifyPeerCertByName,
List<String>? verifyPeerCertInNames,
String? echServerKeys,
String? echConfigList,
ECHForceQuery? echForceQuery,
@JsonKey(name: 'echSockopt') SocketConfig? echSocketSettings,
}) = _TLSConfig;