nghttpx: QUIC requires TLS
This commit is contained in:
parent
be88846972
commit
6a099ee50a
|
@ -2777,11 +2777,18 @@ 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) {
|
||||||
|
if (params.alt_mode != UpstreamAltMode::NONE) {
|
||||||
LOG(ERROR) << "frontend: api or healthmon cannot be used with quic";
|
LOG(ERROR) << "frontend: api or healthmon cannot be used with quic";
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!params.tls) {
|
||||||
|
LOG(ERROR) << "frontend: quic requires TLS";
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
UpstreamAddr addr{};
|
UpstreamAddr addr{};
|
||||||
addr.fd = -1;
|
addr.fd = -1;
|
||||||
addr.tls = params.tls;
|
addr.tls = params.tls;
|
||||||
|
|
Loading…
Reference in New Issue