From e9b8fd8bd7f2c38523a5a09694b6bb724f0e41ff Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Wed, 8 Sep 2010 19:41:17 +0200 Subject: [PATCH] Check for both ip6-localhost and localhost --- src/httpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/httpd.c b/src/httpd.c index 1a8ec271..ac31f2f8 100644 --- a/src/httpd.c +++ b/src/httpd.c @@ -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");