mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
Consider loopback addresses local (for passwordless access to config page on win32)
This commit is contained in:
parent
c578eb5bae
commit
a2ea8c3de0
@ -629,6 +629,8 @@ int os_islocaladdr(char *hostaddr) {
|
||||
int index;
|
||||
|
||||
DPRINTF(E_DBG,L_MISC,"Checking if %s is local\n",hostaddr);
|
||||
if(strncmp(hostaddr,"127.",4) == 0)
|
||||
return TRUE;
|
||||
|
||||
gethostname(hostname, sizeof(hostname));
|
||||
ht=gethostbyname(hostname);
|
||||
|
Loading…
Reference in New Issue
Block a user