mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
Check for both ip6-localhost and localhost
This commit is contained in:
parent
053b8df4ba
commit
e9b8fd8bd7
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user