diff options
-rw-r--r-- | src/transport/plugin_transport_http.c | 8 | ||||
-rw-r--r-- | src/transport/plugin_transport_http.h | 8 | ||||
-rw-r--r-- | 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, | |||
763 | #if DEBUG_HTTP | 763 | #if DEBUG_HTTP |
764 | struct Plugin *plugin = cls; | 764 | struct Plugin *plugin = cls; |
765 | #endif | 765 | #endif |
766 | //static int limit; | ||
767 | #if DEBUG_HTTP | 766 | #if DEBUG_HTTP |
768 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, | 767 | GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name, |
769 | "NPMC called %s to address `%s'\n", | 768 | "NPMC called %s to address `%s'\n", |
770 | (add_remove == GNUNET_NO) ? "remove" : "add", | 769 | (add_remove == GNUNET_NO) ? "remove" : "add", |
771 | GNUNET_a2s (addr, addrlen)); | 770 | GNUNET_a2s (addr, addrlen)); |
772 | #endif | 771 | #endif |
773 | /* convert 'addr' to our internal format */ | ||
774 | switch (add_remove) | 772 | switch (add_remove) |
775 | { | 773 | { |
776 | case GNUNET_YES: | 774 | case GNUNET_YES: |
777 | // FIXME DEBUGGING | ||
778 | //if (limit < 1) | ||
779 | nat_add_address (cls, add_remove, addr, addrlen); | 775 | nat_add_address (cls, add_remove, addr, addrlen); |
780 | //limit++; | ||
781 | // FIXME END | ||
782 | break; | 776 | break; |
783 | case GNUNET_NO: | 777 | case GNUNET_NO: |
784 | nat_remove_address (cls, add_remove, addr, addrlen); | 778 | 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 @@ | |||
42 | #include <curl/curl.h> | 42 | #include <curl/curl.h> |
43 | 43 | ||
44 | 44 | ||
45 | #define DEBUG_HTTP GNUNET_NO | 45 | #define DEBUG_HTTP GNUNET_EXTRA_LOGGING |
46 | #define VERBOSE_SERVER GNUNET_NO | 46 | #define VERBOSE_SERVER GNUNET_EXTRA_LOGGING |
47 | #define VERBOSE_CLIENT GNUNET_NO | 47 | #define VERBOSE_CLIENT GNUNET_EXTRA_LOGGING |
48 | #define VERBOSE_CURL GNUNET_EXTRA_LOGGING | 48 | #define VERBOSE_CURL GNUNET_NO |
49 | 49 | ||
50 | #if BUILD_HTTPS | 50 | #if BUILD_HTTPS |
51 | #define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_https_init | 51 | #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 | |||
34 | UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock | 34 | UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock |
35 | 35 | ||
36 | [transport] | 36 | [transport] |
37 | DEBUG = YES | 37 | #DEBUG = YES |
38 | PORT = 12081 | 38 | PORT = 12081 |
39 | PLUGINS = http | 39 | PLUGINS = http |
40 | #BINARY = .libs/gnunet-service-transport | 40 | #BINARY = .libs/gnunet-service-transport |