diff options
Diffstat (limited to 'src/transport/plugin_transport_udp_broadcasting.c')
-rw-r--r-- | src/transport/plugin_transport_udp_broadcasting.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_udp_broadcasting.c b/src/transport/plugin_transport_udp_broadcasting.c index e8e087276..a2278f293 100644 --- a/src/transport/plugin_transport_udp_broadcasting.c +++ b/src/transport/plugin_transport_udp_broadcasting.c | |||
@@ -394,6 +394,17 @@ iface_proc (void *cls, const char *name, int isDefault, | |||
394 | void | 394 | void |
395 | setup_broadcast (struct Plugin *plugin, struct sockaddr_in6 *serverAddrv6, struct sockaddr_in *serverAddrv4) | 395 | setup_broadcast (struct Plugin *plugin, struct sockaddr_in6 *serverAddrv6, struct sockaddr_in *serverAddrv4) |
396 | { | 396 | { |
397 | const struct GNUNET_MessageHeader *hello; | ||
398 | hello = plugin->env->get_our_hello (); | ||
399 | |||
400 | if (GNUNET_YES == GNUNET_HELLO_is_friend_only((const struct GNUNET_HELLO_Message *) hello)) | ||
401 | { | ||
402 | LOG (GNUNET_ERROR_TYPE_WARNING, | ||
403 | _("Disabling HELLO broadcasting due to friend-to-friend only configuration!\n")); | ||
404 | return; | ||
405 | } | ||
406 | |||
407 | |||
397 | /* create IPv4 broadcast socket */ | 408 | /* create IPv4 broadcast socket */ |
398 | plugin->broadcast_ipv4 = GNUNET_NO; | 409 | plugin->broadcast_ipv4 = GNUNET_NO; |
399 | if (plugin->sockv4 != NULL) | 410 | if (plugin->sockv4 != NULL) |