mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-21 02:00:36 +01:00
pgm_socket uses binary version of UUID
pgm_socket used textural form of UUID to generate GSIs. The recent patch that removed support for textual UUIDs broke the functionality. This patch fixes the problem. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
parent
96213d5735
commit
fe2e772dd5
@ -261,10 +261,10 @@ int zmq::pgm_socket_t::init (bool udp_encapsulation_, const char *network_)
|
||||
goto err_abort;
|
||||
} else {
|
||||
|
||||
// Generate random gsi.
|
||||
std::string gsi_base = uuid_t ().to_string ();
|
||||
if (!pgm_gsi_create_from_string (&addr.sa_addr.gsi,
|
||||
gsi_base.c_str (), -1))
|
||||
// Generate GSI from UUID.
|
||||
unsigned char buf [16];
|
||||
generate_uuid (buf);
|
||||
if (!pgm_gsi_create_from_data (&addr.sa_addr.gsi, buf, 16))
|
||||
goto err_abort;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user