Commit 6a099ee5 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: QUIC requires TLS

parent be888469
...@@ -2777,9 +2777,16 @@ int parse_config(Config *config, int optid, const StringRef &opt, ...@@ -2777,9 +2777,16 @@ int parse_config(Config *config, int optid, const StringRef &opt,
return -1; return -1;
} }
if (params.quic && params.alt_mode != UpstreamAltMode::NONE) { if (params.quic) {
LOG(ERROR) << "frontend: api or healthmon cannot be used with quic"; if (params.alt_mode != UpstreamAltMode::NONE) {
return -1; LOG(ERROR) << "frontend: api or healthmon cannot be used with quic";
return -1;
}
if (!params.tls) {
LOG(ERROR) << "frontend: quic requires TLS";
return -1;
}
} }
UpstreamAddr addr{}; UpstreamAddr addr{};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment