diff src/process.c @ 110556:310fef3bdbbb

Fix bug#6781: Use 127.0.0.1 for local hosts, not "localhost". * lisp/server.el (server-start): Revert part of 2010-08-08 change. Using address 127.0.0.1 for local host is now done in Fmake_network_process. * src/process.c (Fmake_network_process): When arg :host is 'local, use address 127.0.0.1, not name "localhost".
author Juanma Barranquero <lekktu@gmail.com>
date Sat, 25 Sep 2010 02:32:09 +0200
parents 015a63c2574f
children ea50a897140e
line wrap: on
line diff
--- a/src/process.c	Fri Sep 24 22:33:34 2010 +0000
+++ b/src/process.c	Sat Sep 25 02:32:09 2010 +0200
@@ -3170,7 +3170,9 @@
   if (!NILP (host))
     {
       if (EQ (host, Qlocal))
-	host = build_string ("localhost");
+	/* Depending on setup, "localhost" may map to different IPv4 and/or
+	   IPv6 addresses, so it's better to be explicit.  (Bug#6781) */
+	host = build_string ("127.0.0.1");
       CHECK_STRING (host);
     }