1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-23 17:34:17 +03:00

fixed proxy mistyping

This commit is contained in:
Adolfo Gómez 2020-11-26 18:41:58 +01:00
parent 4866b8947c
commit 933ba772d9
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ class UDSActorClientPool:
result: typing.List[typing.Any] = []
for clientUrl in self._clientUrl:
try:
result.append(requests.post(clientUrl + '/' + method, data=json.dumps(data), verify=False, timeout=timeout, proxy=NO_PROXY))
result.append(requests.post(clientUrl + '/' + method, data=json.dumps(data), verify=False, timeout=timeout, proxies=NO_PROXY))
except Exception as e:
# If cannot request to a clientUrl, remove it from list
logger.info('Could not connect with client %s: %s. Removed from registry.', e, clientUrl)

View File

@ -120,7 +120,7 @@ class UDSApi: # pylint: disable=too-few-public-methods
headers=headers,
verify=self._validateCert,
timeout=TIMEOUT,
proxies=NO_PROXY if disableProxy else None # If disable proxy, force skip it
proxies=NO_PROXY if disableProxy else None # if not proxies wanted, enforce it
)
if result.ok: