gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r16311 - gnunet/src/vpn


From: gnunet
Subject: [GNUnet-SVN] r16311 - gnunet/src/vpn
Date: Tue, 2 Aug 2011 09:34:38 +0200

Author: toelke
Date: 2011-08-02 09:34:38 +0200 (Tue, 02 Aug 2011)
New Revision: 16311

Modified:
   gnunet/src/vpn/gnunet-service-dns.c
Log:
Revert "save the dns-tunnel"

This reverts commit 239ce5412a61e92edcd372c1a751c54763f5f80f.

Modified: gnunet/src/vpn/gnunet-service-dns.c
===================================================================
--- gnunet/src/vpn/gnunet-service-dns.c 2011-08-02 07:34:36 UTC (rev 16310)
+++ gnunet/src/vpn/gnunet-service-dns.c 2011-08-02 07:34:38 UTC (rev 16311)
@@ -44,11 +44,6 @@
 struct GNUNET_MESH_Handle *mesh_handle;
 
 /**
- * The tunnel to send queries
- */
-static struct GNUNET_MESH_Tunnel* dns_tunnel;
-
-/**
  * The UDP-Socket through which DNS-Resolves will be sent if they are not to be
  * sent through gnunet. The port of this socket will not be hijacked.
  */
@@ -360,14 +355,13 @@
 
   struct tunnel_cls *cls_ = (struct tunnel_cls*)cls;
 
-  if (NULL == dns_tunnel)
-    dns_tunnel = GNUNET_MESH_peer_request_connect_by_type(mesh_handle,
-                                                          
GNUNET_TIME_UNIT_HOURS,
-                                                          
GNUNET_APPLICATION_TYPE_INTERNET_RESOLVER,
-                                                          mesh_connect,
-                                                          NULL,
-                                                          cls_);
-  cls_->tunnel = dns_tunnel;
+  cls_->tunnel = GNUNET_MESH_peer_request_connect_by_type(mesh_handle,
+                                           GNUNET_TIME_UNIT_HOURS,
+                                           
GNUNET_APPLICATION_TYPE_INTERNET_RESOLVER,
+                                           mesh_connect,
+                                           NULL,
+                                           cls_);
+
   remote_pending[cls_->dns.s.id] = cls_;
 }
 




reply via email to

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