nghttpx: Do not allow quic on UNIX domain socket for now

This commit is contained in:
Tatsuhiro Tsujikawa 2021-08-26 18:21:27 +09:00
parent a0066a1ccf
commit 0d35e8e15e
1 changed files with 5 additions and 0 deletions

View File

@ -2694,6 +2694,11 @@ int parse_config(Config *config, int optid, const StringRef &opt,
#endif // !ENABLE_HTTP3
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();
addr.host = make_string_ref(config->balloc, StringRef{path, addr_end});
addr.host_unix = true;