diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-03-02 11:21:06 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-03-02 11:21:06 +0100 |
commit | 1b1edf92c24f91c36747458e880e0d6a5e559e95 (patch) | |
tree | 8e8085c209236f28c56098d81d1fe26a84e709d8 /src/transport/gnunet-communicator-udp.c | |
parent | 54d83ad059519ca03971b79b8410540d9438b5a8 (diff) |
use #5553 function in TCP/UDP communicators
Diffstat (limited to 'src/transport/gnunet-communicator-udp.c')
-rw-r--r-- | src/transport/gnunet-communicator-udp.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/transport/gnunet-communicator-udp.c b/src/transport/gnunet-communicator-udp.c index 550ba7c85..fa8eb6acb 100644 --- a/src/transport/gnunet-communicator-udp.c +++ b/src/transport/gnunet-communicator-udp.c @@ -24,7 +24,6 @@ * @author Christian Grothoff * * TODO: - * - add and use util/ check for IPv6 availability (#5553) * - consider imposing transmission limits in the absence * of ACKs; or: maybe this should be done at TNG service level? * (at least the receiver might want to enforce limits on @@ -1784,12 +1783,12 @@ udp_address_to_sockaddr (const char *bindto, bindto); return NULL; } - /* FIXME #V6: add test to util/ for IPv6 availability, - and depending on the result, go directly for v4-only */ - if (GNUNET_YES == - GNUNET_CONFIGURATION_get_value_yesno (cfg, - COMMUNICATOR_CONFIG_SECTION, - "DISABLE_V6")) + if ( (GNUNET_NO == + GNUNET_NETWORK_test_pf (PF_INET6)) || + (GNUNET_YES == + GNUNET_CONFIGURATION_get_value_yesno (cfg, + COMMUNICATOR_CONFIG_SECTION, + "DISABLE_V6")) ) { struct sockaddr_in *i4; |