mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 18:37:33 +00:00
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:
parent
61b1af8289
commit
ba3033ee40
4 changed files with 14 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue