From a57a7be5962f6f9536ab97751b177575a4884bd0 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 18 Aug 2009 21:03:54 -0700 Subject: Treat all 127.0.0.0/8 addresses as localhost Similar fix to http://bugs.freedesktop.org/show_bug.cgi?id=23329 Signed-off-by: Alan Coopersmith --- auth.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/auth.c b/auth.c index 38191f8..dc372a0 100644 --- a/auth.c +++ b/auth.c @@ -731,9 +731,7 @@ DefineSelf(int fd, FILE *file, Xauth *auth) * the local entry anyway, so this one can * be tossed. */ - if (family == FamilyInternet && len == 4 && - addr[0] == 127 && addr[1] == 0 && - addr[2] == 0 && addr[3] == 1) + if (family == FamilyInternet && len == 4 && addr[0] == 127) { Debug ("Skipping localhost address\n"); continue; -- cgit v1.2.3