From 70f09e5d0892371486446878af330721db3845e9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 12 Jan 2017 18:33:03 +0100 Subject: [PATCH] handle case upnpc not found nicely --- src/nat/gnunet-service-nat.c | 4 ++++ src/nat/gnunet-service-nat_mini.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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); /** -- 2.25.1