From 09aa75cc9decb90576828b4e2b7507301e4c5eb2 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 6 Oct 2011 13:53:19 +0000 Subject: [PATCH] --- src/transport/plugin_transport_http.c | 8 +------- src/transport/plugin_transport_http.h | 8 ++++---- src/transport/test_transport_api_http_nat_peer1.conf | 2 +- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index 3c61cf242..857f5c83b 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -763,22 +763,16 @@ nat_port_map_callback (void *cls, int add_remove, const struct sockaddr *addr, #if DEBUG_HTTP struct Plugin *plugin = cls; #endif - //static int limit; #if DEBUG_HTTP - GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, + GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name, "NPMC called %s to address `%s'\n", (add_remove == GNUNET_NO) ? "remove" : "add", GNUNET_a2s (addr, addrlen)); #endif - /* convert 'addr' to our internal format */ switch (add_remove) { case GNUNET_YES: - // FIXME DEBUGGING - //if (limit < 1) nat_add_address (cls, add_remove, addr, addrlen); - //limit++; - // FIXME END break; case GNUNET_NO: nat_remove_address (cls, add_remove, addr, addrlen); diff --git a/src/transport/plugin_transport_http.h b/src/transport/plugin_transport_http.h index e62c980b4..d5fa4725e 100644 --- a/src/transport/plugin_transport_http.h +++ b/src/transport/plugin_transport_http.h @@ -42,10 +42,10 @@ #include -#define DEBUG_HTTP GNUNET_NO -#define VERBOSE_SERVER GNUNET_NO -#define VERBOSE_CLIENT GNUNET_NO -#define VERBOSE_CURL GNUNET_EXTRA_LOGGING +#define DEBUG_HTTP GNUNET_EXTRA_LOGGING +#define VERBOSE_SERVER GNUNET_EXTRA_LOGGING +#define VERBOSE_CLIENT GNUNET_EXTRA_LOGGING +#define VERBOSE_CURL GNUNET_NO #if BUILD_HTTPS #define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_https_init diff --git a/src/transport/test_transport_api_http_nat_peer1.conf b/src/transport/test_transport_api_http_nat_peer1.conf index 85875e9b2..48707a730 100644 --- a/src/transport/test_transport_api_http_nat_peer1.conf +++ b/src/transport/test_transport_api_http_nat_peer1.conf @@ -34,7 +34,7 @@ PORT = 12082 UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock [transport] -DEBUG = YES +#DEBUG = YES PORT = 12081 PLUGINS = http #BINARY = .libs/gnunet-service-transport -- 2.25.1