From a0efd7c0c7397ceeb1f869edec2a34cf4a46197b Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 28 Jul 2019 18:30:34 +0100 Subject: [PATCH] Use _make_socket provided timeout --- modules/proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/proxy.py b/modules/proxy.py index ccbda4ab..744afae1 100644 --- a/modules/proxy.py +++ b/modules/proxy.py @@ -36,5 +36,5 @@ class Module(ModuleManager.BaseModule): return lambda host, port, bind, timeout: self._make_socket( ptype, phost, pport, host, port, bind, timeout) def _make_socket(self, ptype, phost, pport, host, port, bind, timeout): - return socks.create_connection((host, port), 20, bind, + return socks.create_connection((host, port), timeout, bind, ptype, phost, pport)