From 531080d871896f2027dd2e660537bce75e0d5dca Mon Sep 17 00:00:00 2001 From: kikuchan Date: Thu, 12 Apr 2018 20:45:33 +0900 Subject: [PATCH] "upstream" command's site_spec part should be handled properly as documented "IP/mask" handler was missing on parser for normal "upstream type", though it exists for "upstream none". closes #83 --- src/upstream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/upstream.c b/src/upstream.c index c84bad2..6d3242b 100644 --- a/src/upstream.c +++ b/src/upstream.c @@ -140,7 +140,8 @@ static struct upstream *upstream_build (const char *host, int port, const char * up->host = safestrdup (host); up->port = port; - up->domain = safestrdup (domain); + + upstream_handle_site_spec(up, domain); log_message (LOG_INFO, "Added upstream %s %s:%d for %s", proxy_type_name(type), host, port, domain);