Fix a bug where mpd would complain about a proxy password being specified
and not a proxy user even when both are specified. git-svn-id: https://svn.musicpd.org/mpd/trunk@5324 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
79ef8ba248
commit
c5933a164a
@ -102,14 +102,14 @@ void inputStream_initHttp(void)
|
||||
}
|
||||
|
||||
proxyPassword = param->value;
|
||||
}
|
||||
} else {
|
||||
param = getConfigParam(CONF_HTTP_PROXY_PASSWORD);
|
||||
|
||||
param = getConfigParam(CONF_HTTP_PROXY_PASSWORD);
|
||||
|
||||
if (param) {
|
||||
ERROR("%s specified but not %s\n",
|
||||
CONF_HTTP_PROXY_PASSWORD, CONF_HTTP_PROXY_USER);
|
||||
exit(EXIT_FAILURE);
|
||||
if (param) {
|
||||
ERROR("%s specified but not %s\n",
|
||||
CONF_HTTP_PROXY_PASSWORD, CONF_HTTP_PROXY_USER);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
} else if ((param = getConfigParam(CONF_HTTP_PROXY_PORT))) {
|
||||
ERROR("%s specified but not %s, line %i\n",
|
||||
|
Loading…
Reference in New Issue
Block a user