config: unify upstream syntax for http,socks4,socks5 and none
closes #50
This commit is contained in:
1 parent
9cde492d68
commit
057cf06805
3 files changed
+52
-52
No files matched your search
+1
-1
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user