mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-14 11:06:59 +01:00
Hardcoded loopback address removed from fd_signaler
This commit is contained in:
parent
f4832faf29
commit
d1e09578b2
1
AUTHORS
1
AUTHORS
@ -21,6 +21,7 @@ Pavel Gushcha
|
|||||||
Pavol Malosek
|
Pavol Malosek
|
||||||
Steven McCoy
|
Steven McCoy
|
||||||
Tamara Kustarova
|
Tamara Kustarova
|
||||||
|
Tero Marttila
|
||||||
Terry Wilson
|
Terry Wilson
|
||||||
Vitaly Mayatskikh
|
Vitaly Mayatskikh
|
||||||
|
|
||||||
|
@ -127,7 +127,9 @@ zmq::fd_signaler_t::fd_signaler_t ()
|
|||||||
|
|
||||||
memset (&addr, 0, sizeof (addr));
|
memset (&addr, 0, sizeof (addr));
|
||||||
addr.sin_family = AF_INET;
|
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));
|
int rc = bind (listener, (const struct sockaddr*) &addr, sizeof (addr));
|
||||||
wsa_assert (rc != SOCKET_ERROR);
|
wsa_assert (rc != SOCKET_ERROR);
|
||||||
|
Loading…
Reference in New Issue
Block a user