* process.c (connect_network_socket): Save the correct contact
info for servers.
}
#endif
- contact = Fplist_put (contact, p->is_server? QCremote: QClocal,
+ contact = Fplist_put (contact, p->is_server? QClocal: QCremote,
conv_sockaddr_to_lisp (sa, addrlen));
#ifdef HAVE_GETSOCKNAME
if (!p->is_server)
{
/* The "connection" function gets it bind info from the address we're
given, so use this dummy address if nothing is specified. */
- host = build_string ("127.0.0.1");
+ if (family != AF_LOCAL)
+ host = build_string ("127.0.0.1");
}
else
{