alpn settings

This commit is contained in:
arm64v8a
2022-08-13 13:53:16 +08:00
parent fd849f781b
commit 6931b4c8e1
9 changed files with 76 additions and 40 deletions

View File

@@ -11,13 +11,11 @@ namespace NekoRay::fmt {
// ws/h2/grpc
QString path = "";
QString host = "";
// ws
int max_early_data = 0;
QString early_data_header_name = "";
// QUIC & KCP
QString header_type = "";
// tls
QString sni = "";
QString alpn = "";
QString certificate = "";
bool allow_insecure = false;
@@ -28,10 +26,9 @@ namespace NekoRay::fmt {
_add(new configItem("path", &path, itemType::string));
_add(new configItem("host", &host, itemType::string));
_add(new configItem("sni", &sni, itemType::string));
_add(new configItem("alpn", &alpn, itemType::string));
_add(new configItem("cert", &certificate, itemType::string));
_add(new configItem("insecure", &allow_insecure, itemType::boolean));
_add(new configItem("ws_med", &max_early_data, itemType::integer));
_add(new configItem("ws_edhn", &early_data_header_name, itemType::string));
_add(new configItem("h_type", &header_type, itemType::string));
}