handle case upnpc not found nicely
authorChristian Grothoff <christian@grothoff.org>
Thu, 12 Jan 2017 17:33:03 +0000 (18:33 +0100)
committerChristian Grothoff <christian@grothoff.org>
Thu, 12 Jan 2017 17:33:03 +0000 (18:33 +0100)
src/nat/gnunet-service-nat.c
src/nat/gnunet-service-nat_mini.h

index ccb37d2f926e5d84abfd4b4df99a08580e21809d..98d87262eb467591d9c241841e9e345a1c77f848 100644 (file)
@@ -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");
index 2c0dd34458728899d25f06aadbb99ceec56cfb08..8a7af9bf10a525dd38f9db6bf2145b8134d02a0a 100644 (file)
@@ -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);
 
 
 /**