From 1ac254c798aac1c050d56910944647ae9e20effe Mon Sep 17 00:00:00 2001 From: Keivan-sf Date: Sat, 14 Oct 2023 11:58:55 +0330 Subject: [PATCH] chore: add tls settings struct --- src/parser/vless.rs | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/parser/vless.rs b/src/parser/vless.rs index f6c8880..6828283 100644 --- a/src/parser/vless.rs +++ b/src/parser/vless.rs @@ -57,7 +57,28 @@ enum OutboundSettings { 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 { settings: OutboundSettings,