mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-06 18:18:52 +08:00
nghttpx: Fix unix domain backend
This commit is contained in:
@@ -518,7 +518,7 @@ int parse_config(const char *opt, const char *optarg) {
|
|||||||
DownstreamAddr addr;
|
DownstreamAddr addr;
|
||||||
if (util::istartsWith(optarg, SHRPX_UNIX_PATH_PREFIX)) {
|
if (util::istartsWith(optarg, SHRPX_UNIX_PATH_PREFIX)) {
|
||||||
auto path = optarg + str_size(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;
|
addr.host_unix = true;
|
||||||
} else {
|
} else {
|
||||||
if (split_host_port(host, sizeof(host), &port, optarg,
|
if (split_host_port(host, sizeof(host), &port, optarg,
|
||||||
|
|||||||
Reference in New Issue
Block a user