Use INADDR_LOOPBACK
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1054 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -152,7 +152,7 @@ get_xsockets (int *unix_socket, int *tcp_socket)
|
||||
if (h)
|
||||
memcpy (&local, h->h_addr, h->h_length);
|
||||
else
|
||||
local.s_addr = inet_addr ("127.0.0.1");
|
||||
local.s_addr = INADDR_LOOPBACK;
|
||||
|
||||
for(dpy = 4; dpy < 256; ++dpy) {
|
||||
unixfd = socket (AF_UNIX, SOCK_STREAM, 0);
|
||||
|
Reference in New Issue
Block a user