Use _make_socket provided timeout

This commit is contained in:
jesopo 2019-07-28 18:30:34 +01:00
parent e2e48caf7f
commit a0efd7c0c7

View file

@ -36,5 +36,5 @@ class Module(ModuleManager.BaseModule):
return lambda host, port, bind, timeout: self._make_socket( return lambda host, port, bind, timeout: self._make_socket(
ptype, phost, pport, host, port, bind, timeout) ptype, phost, pport, host, port, bind, timeout)
def _make_socket(self, 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) ptype, phost, pport)