????
Current Path : /usr/lib/python3.6/site-packages/certbot/_internal/plugins/__pycache__/ |
Current File : //usr/lib/python3.6/site-packages/certbot/_internal/plugins/__pycache__/standalone.cpython-36.pyc |
3 گa�# � @ sf d Z ddlZddlZddlZddlZddlmZ ddlmZ ddlmZ ddlm Z ddlm Z ddlmZ dd lmZ dd lm Z ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ej e!�Z"e�r,eej#e ej$ f Z%G dd� d�Z&G dd� dej'ej(�Z(ej)dd�dd�Z*dS )zStandalone Authenticator.� N)�Any)�Callable)�DefaultDict)�Dict)�Iterable)�List)�Mapping)�Set)�Tuple)�Type)� TYPE_CHECKING)�crypto)� challenges)� standalone)�achallenges)�errors)� interfaces)�util)�commonc @ s� e Zd ZdZeeeejej f f e ejj dd�dd�Zdeeej eejd�dd �Zedd �dd�Zeeejf d �dd�ZdS )� ServerManagera� Standalone servers manager. Manager for `ACMEServer` and `ACMETLSServer` instances. `certs` and `http_01_resources` correspond to `acme.crypto_util.SSLSocket.certs` and `acme.crypto_util.SSLSocket.http_01_resources` respectively. All created servers share the same certificates and resources, so if you're running both TLS and non-TLS instances, HTTP01 handlers will serve the same URLs! N)�certs�http_01_resources�returnc C s i | _ || _|| _d S )N)� _instancesr r )�selfr r � r � /usr/lib/python3.6/standalone.py�__init__2 s zServerManager.__init__� )�port�challenge_type� listenaddrr c C s� |t jkst�|| jkr"| j| S ||f}ytj|| j�}W n0 tjk rl } zt j ||��W Y dd}~X nX |j� |j� d d }|| j|<