aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2010-09-25 02:32:09 +0200
committerJuanma Barranquero2010-09-25 02:32:09 +0200
commitba3033ee40a7e4bad9bf7df5a2fc06046b5df08a (patch)
treebb8be2b545ca535e0000d2c4313dd4974fde17c7 /src
parent61b1af828927139930086a12ef20ff144f82e635 (diff)
downloademacs-ba3033ee40a7e4bad9bf7df5a2fc06046b5df08a.tar.gz
emacs-ba3033ee40a7e4bad9bf7df5a2fc06046b5df08a.zip
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".
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/process.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 94ae1496921..8b29c804943 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-09-25 Juanma Barranquero <lekktu@gmail.com>
2
3 * process.c (Fmake_network_process): When arg :host is 'local,
4 use address 127.0.0.1, not name "localhost". (Bug#6781)
5
12010-09-24 Eli Zaretskii <eliz@gnu.org> 62010-09-24 Eli Zaretskii <eliz@gnu.org>
2 7
3 * indent.c (Fcurrent_indentation, indented_beyond_p) 8 * indent.c (Fcurrent_indentation, indented_beyond_p)
diff --git a/src/process.c b/src/process.c
index ec1b9586db5..ac82f12debb 100644
--- a/src/process.c
+++ b/src/process.c
@@ -3170,7 +3170,9 @@ usage: (make-network-process &rest ARGS) */)
3170 if (!NILP (host)) 3170 if (!NILP (host))
3171 { 3171 {
3172 if (EQ (host, Qlocal)) 3172 if (EQ (host, Qlocal))
3173 host = build_string ("localhost"); 3173 /* Depending on setup, "localhost" may map to different IPv4 and/or
3174 IPv6 addresses, so it's better to be explicit. (Bug#6781) */
3175 host = build_string ("127.0.0.1");
3174 CHECK_STRING (host); 3176 CHECK_STRING (host);
3175 } 3177 }
3176 3178