diff options
Diffstat (limited to 'src/transport/plugin_transport_udp_broadcasting.c')
-rw-r--r-- | src/transport/plugin_transport_udp_broadcasting.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_udp_broadcasting.c b/src/transport/plugin_transport_udp_broadcasting.c index d9596c0a6..413c79564 100644 --- a/src/transport/plugin_transport_udp_broadcasting.c +++ b/src/transport/plugin_transport_udp_broadcasting.c | |||
@@ -545,11 +545,10 @@ setup_broadcast (struct Plugin *plugin, | |||
545 | struct sockaddr_in6 *server_addrv6, | 545 | struct sockaddr_in6 *server_addrv6, |
546 | struct sockaddr_in *server_addrv4) | 546 | struct sockaddr_in *server_addrv4) |
547 | { | 547 | { |
548 | const struct GNUNET_MessageHeader *hello; | ||
549 | |||
550 | hello = plugin->env->get_our_hello (); | ||
551 | if (GNUNET_YES == | 548 | if (GNUNET_YES == |
552 | GNUNET_HELLO_is_friend_only ((const struct GNUNET_HELLO_Message *) hello)) | 549 | GNUNET_CONFIGURATION_get_value_yesno (plugin->env->cfg, |
550 | "topology", | ||
551 | "FRIENDS-ONLY")) | ||
553 | { | 552 | { |
554 | LOG (GNUNET_ERROR_TYPE_WARNING, | 553 | LOG (GNUNET_ERROR_TYPE_WARNING, |
555 | _("Disabling HELLO broadcasting due to friend-to-friend only configuration!\n")); | 554 | _("Disabling HELLO broadcasting due to friend-to-friend only configuration!\n")); |