nghttpx: Fix unix domain backend

This commit is contained in:
Tatsuhiro Tsujikawa 2015-07-11 02:41:33 +09:00
parent 6d556755ee
commit d457f39b1e
1 changed files with 1 additions and 1 deletions

View File

@ -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,