mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-14 01:37:56 +08:00
backport zeromq/libzmq@09e7416
fixes zmq_unbind failing for wildcard endpoints
This commit is contained in:
parent
717d69005d
commit
6369bfb78d
@ -364,7 +364,7 @@ int zmq::socket_base_t::bind (const char *addr_)
|
|||||||
// Save last endpoint URI
|
// Save last endpoint URI
|
||||||
listener->get_address (options.last_endpoint);
|
listener->get_address (options.last_endpoint);
|
||||||
|
|
||||||
add_endpoint (addr_, (own_t *) listener);
|
add_endpoint (options.last_endpoint.c_str (), (own_t *) listener);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -383,7 +383,7 @@ int zmq::socket_base_t::bind (const char *addr_)
|
|||||||
// Save last endpoint URI
|
// Save last endpoint URI
|
||||||
listener->get_address (options.last_endpoint);
|
listener->get_address (options.last_endpoint);
|
||||||
|
|
||||||
add_endpoint (addr_, (own_t *) listener);
|
add_endpoint (options.last_endpoint.c_str (), (own_t *) listener);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user