Permalink
Browse files

Merge pull request #610 from maolin-cdzl/feature-set_endpoint-ephemeral

zyre_set_endpoint supports ephemeral ports
  • Loading branch information...
sphaero committed Nov 3, 2018
2 parents 067c9ec + f691249 commit e5e644b2d729ae69fcc43d992d2e0402332e5484
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/zyre_node.c
View
@@ -527,7 +527,8 @@ zyre_node_recv_api (zyre_node_t *self)
if (self->secret_key)
assert (zsock_mechanism (self->inbox) == ZMQ_CURVE);
self->endpoint = endpoint;
self->endpoint = strdup(zsock_endpoint(self->inbox));
zstr_free(&endpoint);
zsock_signal (self->pipe, 0);
}
else {

0 comments on commit e5e644b

Please sign in to comment.