[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34242 - gnunet/src/hostlist
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34242 - gnunet/src/hostlist |
Date: |
Fri, 29 Aug 2014 15:21:55 +0200 |
Author: wachs
Date: 2014-08-29 15:21:55 +0200 (Fri, 29 Aug 2014)
New Revision: 34242
Modified:
gnunet/src/hostlist/gnunet-daemon-hostlist_server.c
Log:
improve logging on cfg error
Modified: gnunet/src/hostlist/gnunet-daemon-hostlist_server.c
===================================================================
--- gnunet/src/hostlist/gnunet-daemon-hostlist_server.c 2014-08-29 12:47:19 UTC
(rev 34241)
+++ gnunet/src/hostlist/gnunet-daemon-hostlist_server.c 2014-08-29 13:21:55 UTC
(rev 34242)
@@ -728,17 +728,26 @@
if (GNUNET_CONFIGURATION_have_value (cfg, "HOSTLIST", "BINDTOIPV4"))
{
- GNUNET_break (GNUNET_OK ==
+ if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (cfg, "HOSTLIST",
- "BINDTOIP", &ipv4));
+ "BINDTOIP", &ipv4))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ _("BINDTOIP does not a valid IPv4 address! Ignoring BINDTOIPV4.\n"));
+ }
+
}
else
ipv4 = NULL;
if (GNUNET_CONFIGURATION_have_value (cfg, "HOSTLIST", "BINDTOIPV6"))
{
- GNUNET_break (GNUNET_OK ==
+ if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (cfg, "HOSTLIST",
- "BINDTOIP", &ipv6));
+ "BINDTOIP", &ipv6))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ _("BINDTOIP does not a valid IPv4 address! Ignoring BINDTOIPV6.\n"));
+ }
}
else
ipv6 = NULL;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34242 - gnunet/src/hostlist,
gnunet <=