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".
This commit is contained in:
Juanma Barranquero 2010-09-25 02:32:09 +02:00
parent 61b1af8289
commit ba3033ee40
4 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2010-09-25 Juanma Barranquero <lekktu@gmail.com>
* 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.
2010-09-24 Glenn Morris <rgm@gnu.org>
* image-mode.el, progmodes/compile.el, progmodes/gud.el:

View file

@ -565,7 +565,7 @@ server or call `M-x server-force-delete' to forcibly disconnect it.")
(if server-use-tcp
(list :family 'ipv4 ;; We're not ready for IPv6 yet
:service t
:host (or server-host "127.0.0.1") ;; See bug#6781
:host (or server-host 'local)
:plist '(:authenticated nil))
(list :family 'local
:service server-file

View file

@ -1,3 +1,8 @@
2010-09-25 Juanma Barranquero <lekktu@gmail.com>
* process.c (Fmake_network_process): When arg :host is 'local,
use address 127.0.0.1, not name "localhost". (Bug#6781)
2010-09-24 Eli Zaretskii <eliz@gnu.org>
* indent.c (Fcurrent_indentation, indented_beyond_p)

View file

@ -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);
}