nghttpx: QUIC requires TLS

This commit is contained in:
Tatsuhiro Tsujikawa 2021-09-18 19:27:47 +09:00
parent be88846972
commit 6a099ee50a
1 changed files with 10 additions and 3 deletions

View File

@ -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{};