summaryrefslogtreecommitdiffhomepage
path: root/src/upstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/upstream.c')
-rw-r--r--src/upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upstream.c b/src/upstream.c
index 0c6b14e..38afacd 100644
--- a/src/upstream.c
+++ b/src/upstream.c
@@ -92,7 +92,7 @@ static struct upstream *upstream_build (const char *host, int port, const char *
log_message (LOG_INFO, "Added upstream %s %s:%d for [default]",
proxy_type_name(type), host, port);
- } else if (host == NULL) {
+ } else if (host == NULL || type == PT_NONE) {
if (!domain || domain[0] == '\0') {
log_message (LOG_WARNING,
"Nonsense no-upstream rule: empty domain");