mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2025-12-16 15:07:53 +00:00
chore: add tls settings struct
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user