mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-24 07:21:32 +01:00
Problem: socks_connecter_t does not set local address
Solution: query the local address and set it
This commit is contained in:
parent
87082557f0
commit
d8b5204f73
@ -150,9 +150,9 @@ void zmq::socks_connecter_t::in_event ()
|
|||||||
if (rc == -1)
|
if (rc == -1)
|
||||||
error ();
|
error ();
|
||||||
else {
|
else {
|
||||||
// TODO query the remote endpoint and pass it here
|
const endpoint_uri_pair_t endpoint_pair = endpoint_uri_pair_t (
|
||||||
endpoint_uri_pair_t endpoint_pair =
|
get_socket_name<tcp_address_t> (_s, socket_end_local),
|
||||||
make_unconnected_connect_endpoint_pair (_endpoint);
|
_endpoint, endpoint_type_connect);
|
||||||
|
|
||||||
// Create the engine object for this connection.
|
// Create the engine object for this connection.
|
||||||
stream_engine_t *engine = new (std::nothrow)
|
stream_engine_t *engine = new (std::nothrow)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user