From a2ea8c3de09ac466812a748d58c624f2b8a668a3 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Fri, 28 Apr 2006 05:31:42 +0000 Subject: [PATCH] Consider loopback addresses local (for passwordless access to config page on win32) --- src/os-win32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os-win32.c b/src/os-win32.c index d875e122..61c20327 100644 --- a/src/os-win32.c +++ b/src/os-win32.c @@ -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);