prevent dns leaks when using proxy. fixes issue #147
[electrum-nvc.git] / lib / network.py
index 578c109..b59c36d 100644 (file)
@@ -56,6 +56,10 @@ class Network(threading.Thread):
         self.proxy = self.config.get('proxy')
         self.heights = {}
 
+        dir_path = os.path.join( self.config.path, 'certs')
+        if not os.path.exists(dir_path):
+            os.mkdir(dir_path)
+
 
     def register_callback(self, event, callback):
         with self.lock: