[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: handle case that IPv6 is not supported
From: |
gnunet |
Subject: |
[gnunet] branch master updated: handle case that IPv6 is not supported |
Date: |
Mon, 02 Sep 2024 12:54:21 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new cbda7c468 handle case that IPv6 is not supported
cbda7c468 is described below
commit cbda7c468306be82e888fe87829aefb788174522
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Sep 2 12:54:18 2024 +0200
handle case that IPv6 is not supported
---
src/service/dht/plugin_dhtu_ip.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/service/dht/plugin_dhtu_ip.c b/src/service/dht/plugin_dhtu_ip.c
index 3c01257dc..f17680c46 100644
--- a/src/service/dht/plugin_dhtu_ip.c
+++ b/src/service/dht/plugin_dhtu_ip.c
@@ -1008,7 +1008,10 @@ DHTU_ip_init (struct GNUNET_DHTU_PluginEnvironment *env)
GNUNET_free (plugin);
return NULL;
}
- af = AF_INET6;
+ if (GNUNET_NETWORK_test_pf (PF_INET6))
+ af = AF_INET6;
+ else
+ af = AF_INET;
sock = socket (af,
SOCK_DGRAM,
IPPROTO_UDP);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: handle case that IPv6 is not supported,
gnunet <=