Check for both ip6-localhost and localhost

This commit is contained in:
Julien BLACHE 2010-09-08 19:41:17 +02:00
parent 053b8df4ba
commit e9b8fd8bd7

View File

@ -781,7 +781,8 @@ serve_file(struct evhttp_request *req, char *uri)
}
else
{
if (strcmp(req->remote_host, "127.0.0.1") != 0)
if ((strcmp(req->remote_host, "::1") != 0)
&& (strcmp(req->remote_host, "127.0.0.1") != 0))
{
DPRINTF(E_LOG, L_HTTPD, "Remote web interface request denied; no password set\n");