Commit d457f39b authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Fix unix domain backend

parent 6d556755
......@@ -518,7 +518,7 @@ int parse_config(const char *opt, const char *optarg) {
DownstreamAddr addr;
if (util::istartsWith(optarg, SHRPX_UNIX_PATH_PREFIX)) {
auto path = optarg + str_size(SHRPX_UNIX_PATH_PREFIX);
addr.host = strcopy(path);
addr.host = strcopy(path, pat_delim - path);
addr.host_unix = true;
} else {
if (split_host_port(host, sizeof(host), &port, optarg,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment