chore: add tls settings struct

This commit is contained in:
Keivan-sf
2023-10-14 11:58:55 +03:30
parent e286d1c499
commit 1ac254c798

View File

@@ -57,7 +57,28 @@ enum OutboundSettings {
Vless(VlessOutboundSettings), Vless(VlessOutboundSettings),
} }
struct StreamSettings {} struct TlsSettings {
allowInsecure: bool,
certificates: u8,
serverName: String,
alpn: u8,
enableSessionResumption: bool,
disableSystemRoot: bool,
minVersion: String,
maxVersion: String,
cipherSuites: String,
preferServerCipherSuites: bool,
fingerprint: String,
rejectUnknownSni: bool,
pinnedPeerCertificateChainSha256: u8,
pinnedPeerCertificatePublicKeySha256: u8,
}
struct StreamSettings {
network: String,
security: String,
tlsSettings: TlsSettings,
}
pub struct Outbound { pub struct Outbound {
settings: OutboundSettings, settings: OutboundSettings,