
    @OOfV                     b    d dl mZ d dlmZ d dlmZ dZdZdZdZ	 G d d	ej                        Zy
)    )Sequence)Optional)
optmanagerz~/.mitmproxy	mitmproxyi   i   c                         e Zd Zd fdZ xZS )Optionsc                 &   t         |           | j                  dt        dd       | j                  dt        dd       | j                  dt        dd       | j                  d	t        t
        d
       | j                  dt        t           g d       | j                  dt        t           d d       | j                  dt        t           d d       | j                  dt        t           d d       | j                  dt        t           d d       | j                  dt        t           g d       | j                  dt        t           g d       | j                  dt        dd       | j                  dt        t           d d       | j                  dt        t           dgd        | j                  d!t        dd"       | j                  d#t        dd$       | j                  d%t        d&d'       | j                  d(t        dd)       | j                  d*t        dd+       | j                  d,t        dd-       | j                  d.t        dd/       | j                  d0t        t           d d1       | j                  d2t        t           d d3       | j                  d4t        t           g d5       | j                  d6t        t           g d7       | j                  d8t        t        d9       | j                  d:t        t        d;        | j                  d<i | y )=NserverTz)Start a proxy server. Enabled by default.showhostFz2Use the Host header to construct URLs for display."add_upstream_certs_to_client_chainz
            Add all certificates of the upstream server to the certificate chain
            that will be served to the proxy client, as extras.
            confdirz6Location of the default mitmproxy configuration files.certsa  
            SSL certificates of the form "[domain=]path". The domain may include
            a wildcard, and is equal to "*" if not specified. The file at path
            is a certificate in PEM format. If a private key is included in the
            PEM, it is used, else the default key in the conf dir is used. The
            PEM file should contain the full certificate chain, with the leaf
            certificate as the first entry.
            cert_passphrasea  
            Passphrase for decrypting the private key provided in the --cert option.

            Note that passing cert_passphrase on the command line makes your passphrase visible in your system's
            process list. Specify it in config.yaml to avoid this.
            ciphers_clientzPSet supported ciphers for client <-> mitmproxy connections using OpenSSL syntax.ciphers_serverzPSet supported ciphers for mitmproxy <-> server connections using OpenSSL syntax.client_certsz%Client certificate file or directory.ignore_hostsa  
            Ignore host and forward all traffic without processing it. In
            transparent mode, it is recommended to use an IP address (range),
            not the hostname. In regular mode, only SSL traffic is ignored and
            the hostname should be used. The supplied value is interpreted as a
            regular expression and matched on the ip or the hostname.
            allow_hostszOpposite of --ignore-hosts.listen_host zXAddress to bind proxy server(s) to (may be overridden for individual modes, see `mode`).listen_portzPort to bind proxy server(s) to (may be overridden for individual modes, see `mode`). By default, the port is mode-specific. The default regular HTTP proxy spawns on port 8080.moderegulara  
            The proxy server type(s) to spawn. Can be passed multiple times.

            Mitmproxy supports "regular" (HTTP), "transparent", "socks5", "reverse:SPEC",
            "upstream:SPEC", and "wireguard[:PATH]" proxy servers. For reverse and upstream proxy modes, SPEC
            is host specification in the form of "http[s]://host[:port]". For WireGuard mode, PATH may point to
            a file containing key material. If no such file exists, it will be created on startup.

            You may append `@listen_port` or `@listen_host:listen_port` to override `listen_host` or `listen_port` for
            a specific proxy mode. Features such as client playback will use the first mode to determine
            which upstream server to use.
            upstream_certz:Connect to upstream server to look up certificate details.http2zDEnable/disable HTTP/2 support. HTTP/2 support is enabled by default.http2_ping_keepalive:   z
            Send a PING frame if an HTTP/2 connection is idle for more than
            the specified number of seconds to prevent the remote site from closing it.
            Set to 0 to disable this feature.
            http3z?Enable/disable support for QUIC and HTTP/3. Enabled by default.	websocketzJEnable/disable WebSocket support. WebSocket support is enabled by default.rawtcpzLEnable/disable raw TCP connections. TCP connections are enabled by default. ssl_insecurez3Do not verify upstream server SSL/TLS certificates.#ssl_verify_upstream_trusted_confdirz
            Path to a directory of trusted CA certificates for upstream server
            verification prepared using the c_rehash tool.
            ssl_verify_upstream_trusted_caz/Path to a PEM formatted trusted CA certificate.	tcp_hostsz
            Generic TCP SSL proxy mode for all hosts that match the pattern.
            Similar to --ignore-hosts, but SSL connections are intercepted.
            The communication contents are printed to the log in verbose mode.
            	udp_hostsz
            Generic UDP SSL proxy mode for all hosts that match the pattern.
            Similar to --ignore-hosts, but SSL connections are intercepted.
            The communication contents are printed to the log in verbose mode.
            content_view_lines_cutoffz{
            Flow content view lines limit. Limit is enabled by default to
            speedup flows browsing.
            key_sizez?
            TLS key size for certificates and CA.
             )super__init__
add_optionboolstrCONF_DIRr   r   intCONTENT_VIEW_LINES_CUTOFFKEY_SIZEupdate)selfkwargs	__class__s     R/var/www/premiumrankchecker/venv/lib/python3.12/site-packages/mitmproxy/options.pyr*   zOptions.__init__   s%   dD"M	
 	@		
 	0		
 	D		
 	SM		
 	SM	
	
 	SM^		
 	SM^		
 	HSM41X	
 	SM		
 	x}b:WXf		
 	SMi		
 	SMK		
" 	H		
 	R		
 	"			
 	M		
 	7		
 	7		
 	A		
 	1SM		
 	,SM=		
 	SM			
 	SM			
 	'%		
 			
 	f    )returnN)__name__
__module____qualname__r*   __classcell__)r5   s   @r6   r   r      s    T Tr7   r   N)collections.abcr   typingr   r   r   r.   CONF_BASENAMEr0   r1   
OptManagerr   r(   r7   r6   <module>rA      s7    $    Uj## Ur7   