From 0d35e8e15e1479ad4863c836e6ef6230d21881d6 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 26 Aug 2021 18:21:27 +0900 Subject: [PATCH] nghttpx: Do not allow quic on UNIX domain socket for now --- src/shrpx_config.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/shrpx_config.cc b/src/shrpx_config.cc index b4ad3e6f..9a127a9c 100644 --- a/src/shrpx_config.cc +++ b/src/shrpx_config.cc @@ -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;