mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-03 14:18:16 -06:00
cleanup
This commit is contained in:
parent
c287e868a3
commit
ed64af0c59
@ -25,7 +25,7 @@ __all__ = (
|
||||
logger = logging.getLogger('netbox.data_backends')
|
||||
|
||||
|
||||
# These Proxy Methods are for handling socks connection proxy
|
||||
# These Proxy Methods are for handling SOCKS connection proxy
|
||||
class ProxyHTTPConnection(HTTPConnection):
|
||||
use_rdns = False
|
||||
|
||||
@ -73,9 +73,7 @@ class rdnsProxyHTTPSConnectionPool(HTTPSConnectionPool):
|
||||
|
||||
|
||||
class ProxyPoolManager(PoolManager):
|
||||
def __init__(self, proxy_url, timeout=5, num_pools=10, headers=None,
|
||||
**connection_pool_kw):
|
||||
|
||||
def __init__(self, proxy_url, timeout=5, num_pools=10, headers=None, **connection_pool_kw):
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user