Skip to content

Commit

Permalink
Merge pull request #486 from twhittock/patch-2
Browse files Browse the repository at this point in the history
Problem: Using ipv6 zone notation in ipv4 mode
  • Loading branch information
bluca committed Oct 18, 2016
2 parents a24589f + e956e6c commit cdbaab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zyre_node.c
Expand Up @@ -837,7 +837,7 @@ zyre_node_recv_beacon (zyre_node_t *self)
char endpoint [100];
const char *iface = zsys_interface ();

if (iface && !streq (iface, "") && !streq (iface, "*"))
if (zsys_ipv6 () && iface && !streq (iface, "") && !streq (iface, "*"))
sprintf (endpoint, "tcp://%s%%%s:%d", ipaddress, iface, ntohs (beacon.port));
else
sprintf (endpoint, "tcp://%s:%d", ipaddress, ntohs (beacon.port));
Expand Down

1 comment on commit cdbaab7

@wesyoung
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, thanks for this. i was scratching my head why i was seeing %eth1 getting wrapped up as an endpoint for ipv4 beacons.. :)

Please sign in to comment.