Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 110555:e07971bb896c | 110556:310fef3bdbbb |
|---|---|
| 3168 /* :host HOST -- hostname, ip address, or 'local for localhost. */ | 3168 /* :host HOST -- hostname, ip address, or 'local for localhost. */ |
| 3169 host = Fplist_get (contact, QChost); | 3169 host = Fplist_get (contact, QChost); |
| 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 |
| 3177 #ifdef HAVE_LOCAL_SOCKETS | 3179 #ifdef HAVE_LOCAL_SOCKETS |
| 3178 if (family == AF_LOCAL) | 3180 if (family == AF_LOCAL) |
