gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r15234 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r15234 - gnunet/src/transport
Date: Mon, 16 May 2011 13:34:36 +0200

Author: wachs
Date: 2011-05-16 13:34:36 +0200 (Mon, 16 May 2011)
New Revision: 15234

Modified:
   gnunet/src/transport/plugin_transport_tcp.c
Log:
fixed bug breaking transport

plugin was bound to specific ip but returned all ip service



Modified: gnunet/src/transport/plugin_transport_tcp.c
===================================================================
--- gnunet/src/transport/plugin_transport_tcp.c 2011-05-16 11:24:47 UTC (rev 
15233)
+++ gnunet/src/transport/plugin_transport_tcp.c 2011-05-16 11:34:36 UTC (rev 
15234)
@@ -38,7 +38,7 @@
 #include "gnunet_transport_plugin.h"
 #include "transport.h"
 
-#define DEBUG_TCP GNUNET_NO
+#define DEBUG_TCP GNUNET_YES
 
 #define DEBUG_TCP_NAT GNUNET_NO
 
@@ -2908,6 +2908,16 @@
   GNUNET_SERVER_disconnect_notify (plugin->server,
                                   &disconnect_notify,
                                   plugin);    
+  if (GNUNET_YES == GNUNET_CONFIGURATION_get_value_string (env->cfg,
+                                                          "transport-tcp",
+                                                          "BINDTO",
+                                                          
&plugin->bind_address))
+       {
+         GNUNET_log_from (GNUNET_ERROR_TYPE_INFO,
+                          "tcp",
+                          _("Binding TCP plugin to specific address: `%s'\n"),
+                          plugin->bind_address);
+       }
   GNUNET_OS_network_interfaces_list (&process_interfaces, plugin);
 
   if ( (plugin->behind_nat == GNUNET_YES) &&
@@ -2950,17 +2960,6 @@
                      _("TCP transport advertises itself as being on port 
%llu\n"),
                      aport);
 
-  if (GNUNET_YES == GNUNET_CONFIGURATION_get_value_string (env->cfg,
-                                                          "transport-tcp", 
-                                                          "BINDTO", 
-                                                          
&plugin->bind_address))
-    {
-      GNUNET_log_from (GNUNET_ERROR_TYPE_INFO, 
-                      "tcp",
-                      _("Binding TCP plugin to specific address: `%s'\n"), 
-                      plugin->bind_address);
-    }
-
   plugin->hostname_dns = GNUNET_RESOLVER_hostname_resolve (env->cfg,
                                                            AF_UNSPEC,
                                                            
HOSTNAME_RESOLVE_TIMEOUT,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]