From dadbfac207e7c6e5ae73f1fa2a2aef2eba392f2e Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Mon, 30 Sep 2024 09:54:29 -0700 Subject: [PATCH] fix missing comma --- netbox/utilities/socks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/utilities/socks.py b/netbox/utilities/socks.py index 5d7367a66..0b5864e44 100644 --- a/netbox/utilities/socks.py +++ b/netbox/utilities/socks.py @@ -55,7 +55,7 @@ class ProxyPoolManager(PoolManager): # python_socks uses rdns param to denote remote DNS parsing and # doesn't accept the 'h' or 'a' in the proxy URL cleaned_proxy_url = proxy_url - if use_rdns := urlparse(cleaned_proxy_url).scheme in ['socks4h', 'socks4a' 'socks5h', 'socks5a']: + if use_rdns := urlparse(cleaned_proxy_url).scheme in ['socks4h', 'socks4a', 'socks5h', 'socks5a']: cleaned_proxy_url = cleaned_proxy_url.replace('socks5h:', 'socks5:').replace('socks5a:', 'socks5:') cleaned_proxy_url = cleaned_proxy_url.replace('socks4h:', 'socks4:').replace('socks4a:', 'socks4:')