From d1e09578b275aca93c50cde078322a0348342c60 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 22 Jan 2010 07:54:16 +0100 Subject: Hardcoded loopback address removed from fd_signaler --- AUTHORS | 1 + src/fd_signaler.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 5fcdbaf..6fd62d9 100644 --- a/AUTHORS +++ b/AUTHORS @@ -21,6 +21,7 @@ Pavel Gushcha Pavol Malosek Steven McCoy Tamara Kustarova +Tero Marttila Terry Wilson Vitaly Mayatskikh diff --git a/src/fd_signaler.cpp b/src/fd_signaler.cpp index a3a73c1..aafd21e 100644 --- a/src/fd_signaler.cpp +++ b/src/fd_signaler.cpp @@ -127,7 +127,9 @@ zmq::fd_signaler_t::fd_signaler_t () memset (&addr, 0, sizeof (addr)); addr.sin_family = AF_INET; - resolve_ip_hostname (&addr, "127.0.0.1:0"); + //resolve_ip_hostname (&addr, "127.0.0.1:0"); + addr.sin_addr.s_addr = htonl (INADDR_LOOPBACK); + addr.sin_port = 0; int rc = bind (listener, (const struct sockaddr*) &addr, sizeof (addr)); wsa_assert (rc != SOCKET_ERROR); -- cgit v1.2.3