Adjust config loader of TLS & XTLS

This commit is contained in:
RPRX 2020-12-16 15:59:04 +00:00 committed by GitHub
parent 88dfed931b
commit 38faac5ffc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 215 additions and 195 deletions

View file

@ -26,9 +26,6 @@ message Config {
// Whether or not to allow self-signed certificates.
bool allow_insecure = 1;
// Whether or not to allow insecure cipher suites.
bool allow_insecure_ciphers = 5;
// List of certificates to be served on server.
repeated Certificate certificate = 2;
@ -39,18 +36,21 @@ message Config {
repeated string next_protocol = 4;
// Whether or not to disable session (ticket) resumption.
bool disable_session_resumption = 6;
bool disable_session_resumption = 5;
// If true, root certificates on the system will not be loaded for
// verification.
bool disable_system_root = 7;
bool disable_system_root = 6;
// The minimum TLS version.
string min_version = 8;
string min_version = 7;
//The TLS cipher suites
// The maximum TLS version.
string max_version = 8;
// Specify cipher suites, except for TLS 1.3.
string cipher_suites = 9;
// If true, server selects the client's most preferred ciphersuite
// Whether the server selects its most preferred ciphersuite.
bool prefer_server_cipher_suites = 10;
}