diff options
author | Juanma Barranquero <[email protected]> | 2010-09-25 02:32:09 +0200 |
---|---|---|
committer | Juanma Barranquero <[email protected]> | 2010-09-25 02:32:09 +0200 |
commit | ba3033ee40a7e4bad9bf7df5a2fc06046b5df08a (patch) | |
tree | bb8be2b545ca535e0000d2c4313dd4974fde17c7 /src/process.c | |
parent | 61b1af828927139930086a12ef20ff144f82e635 (diff) |
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/process.c')
-rw-r--r-- | src/process.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index ec1b9586db..ac82f12deb 100644 --- a/src/process.c +++ b/src/process.c @@ -3170,7 +3170,9 @@ usage: (make-network-process &rest ARGS) */) 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); } |