nghttpx: Do not allow quic on UNIX domain socket for now
This commit is contained in:
parent
a0066a1ccf
commit
0d35e8e15e
|
@ -2694,6 +2694,11 @@ int parse_config(Config *config, int optid, const StringRef &opt,
|
||||||
#endif // !ENABLE_HTTP3
|
#endif // !ENABLE_HTTP3
|
||||||
|
|
||||||
if (util::istarts_with(optarg, SHRPX_UNIX_PATH_PREFIX)) {
|
if (util::istarts_with(optarg, SHRPX_UNIX_PATH_PREFIX)) {
|
||||||
|
if (addr.quic) {
|
||||||
|
LOG(ERROR) << "frontend: quic cannot be used on UNIX domain socket";
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
auto path = std::begin(optarg) + SHRPX_UNIX_PATH_PREFIX.size();
|
auto path = std::begin(optarg) + SHRPX_UNIX_PATH_PREFIX.size();
|
||||||
addr.host = make_string_ref(config->balloc, StringRef{path, addr_end});
|
addr.host = make_string_ref(config->balloc, StringRef{path, addr_end});
|
||||||
addr.host_unix = true;
|
addr.host_unix = true;
|
||||||
|
|
Loading…
Reference in New Issue