mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 06:41:03 +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
|
||||
listener->get_address (options.last_endpoint);
|
||||
|
||||
add_endpoint (addr_, (own_t *) listener);
|
||||
add_endpoint (options.last_endpoint.c_str (), (own_t *) listener);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -383,7 +383,7 @@ int zmq::socket_base_t::bind (const char *addr_)
|
||||
// Save last endpoint URI
|
||||
listener->get_address (options.last_endpoint);
|
||||
|
||||
add_endpoint (addr_, (own_t *) listener);
|
||||
add_endpoint (options.last_endpoint.c_str (), (own_t *) listener);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user