Consider loopback addresses local (for passwordless access to config page on win32)

This commit is contained in:
Ron Pedde 2006-04-28 05:31:42 +00:00
parent c578eb5bae
commit a2ea8c3de0

View File

@ -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);