From: Christian Grothoff Date: Thu, 12 Jan 2017 17:33:03 +0000 (+0100) Subject: handle case upnpc not found nicely X-Git-Tag: taler-0.2.1~456 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=70f09e5d0892371486446878af330721db3845e9;p=oweals%2Fgnunet.git handle case upnpc not found nicely --- diff --git a/src/nat/gnunet-service-nat.c b/src/nat/gnunet-service-nat.c index ccb37d2f9..98d87262e 100644 --- a/src/nat/gnunet-service-nat.c +++ b/src/nat/gnunet-service-nat.c @@ -1103,6 +1103,10 @@ upnp_addr_change_cb (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_INFO, "external-ip binary not found\n"); return; + case GNUNET_NAT_ERROR_UPNPC_NOT_FOUND: + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "upnpc binary not found\n"); + return; case GNUNET_NAT_ERROR_EXTERNAL_IP_UTILITY_FAILED: GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "external-ip binary could not be run\n"); diff --git a/src/nat/gnunet-service-nat_mini.h b/src/nat/gnunet-service-nat_mini.h index 2c0dd3445..8a7af9bf1 100644 --- a/src/nat/gnunet-service-nat_mini.h +++ b/src/nat/gnunet-service-nat_mini.h @@ -55,7 +55,7 @@ struct GNUNET_NAT_ExternalHandle; */ struct GNUNET_NAT_ExternalHandle * GNUNET_NAT_mini_get_external_ipv4_ (GNUNET_NAT_IPCallback cb, - void *cb_cls); + void *cb_cls); /**