diff options
author | unknown <bundra@.(none)> | 2010-01-22 07:54:16 +0100 |
---|---|---|
committer | unknown <bundra@.(none)> | 2010-01-22 07:54:16 +0100 |
commit | d1e09578b275aca93c50cde078322a0348342c60 (patch) | |
tree | 0b0eb1fd85baa9e13262740fabf835bb4188c67c /src | |
parent | f4832faf29df6470bf59f1f1866c07fa4278a75b (diff) |
Hardcoded loopback address removed from fd_signaler
Diffstat (limited to 'src')
-rw-r--r-- | src/fd_signaler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); |