|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/site-packages/urllib3/util/__pycache__/ |
U
N��gE � @ s, d dl mZmZmZ ddd�Zddd�ZdS ) � )�create_urllib3_context�resolve_cert_reqs�resolve_ssl_versionNc C s4 | dkrdS |dkrdS | j dkr0|r0|jr0dS dS )a?
Returns True if the connection requires an HTTP CONNECT through the proxy.
:param URL proxy_url:
URL of the proxy.
:param ProxyConfig proxy_config:
Proxy configuration from poolmanager.py
:param str destination_scheme:
The scheme of the destination. (i.e https, http, etc)
NF�http�httpsT)�scheme�use_forwarding_for_https)� proxy_url�proxy_config�destination_scheme� r �?/opt/cppython/lib/python3.8/site-packages/urllib3/util/proxy.py�connection_requires_http_tunnel s ���r c C s6 t t| �t|�d�}|s2|s2|s2t|d�r2|�� |S )z\
Generates a default proxy ssl context if one hasn't been provided by the
user.
)�ssl_version� cert_reqs�load_default_certs)r r r �hasattrr )r r �ca_certs�ca_cert_dir�ca_cert_data�ssl_contextr r r
�create_proxy_ssl_context% s �����r )NNN)NNN)�ssl_r r r r r r r r r
�<module> s �
"