| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/certbot/plugins/__pycache__/ |
Upload File : |
a
�`~8 � @ sL d Z ddlZddlZddlZddlZddlmZ ddlZddl Z
ddlmZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ dd l
mZ dd
lmZ ddlmZ ddlmZ dd
lmZ e�e�Zdd� Zdd� Ze�d�Z e�dej!�Z"e
j#�$ej%�G dd� de&��Z'G dd� de'�Z(G dd� de&�Z)G dd� de&�Z*dd� Z+dd� Z,dS ) zPlugin common functions.� N)�util)�List)�achallenges)�crypto_util)�errors)�
interfaces)�reverter)� constants)�
filesystem)�os)�
PluginStoragec C s | d S )�9ArgumentParser options namespace (prefix of all options).�-� ��namer r �8/usr/lib/python3/dist-packages/certbot/plugins/common.py�option_namespace s r c C s | � dd�d S )�;ArgumentParser dest namespace (prefix of all destinations).r �_)�replacer r r r �dest_namespace s r zX(^127\.0\.0\.1)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)z3^(([a-z0-9]|[a-z0-9][a-z0-9\-]*[a-z0-9])\.)*[a-z]+$c @ sb e Zd ZdZdd� Zejdd� �Zedd� �Z e
dd � �Zd
d� Ze
dd
� �Z
dd� Zdd� ZdS )�PluginzGeneric plugin.c C s || _ || _d S �N)�configr )�selfr r r r r �__init__0 s zPlugin.__init__c C s dS )z�Add plugin arguments to the CLI argument parser.
:param callable add: Function that proxies calls to
`argparse.ArgumentParser.add_argument` prepending options
with unique plugin name prefix.
Nr )�cls�addr r r �add_parser_arguments4 s zPlugin.add_parser_argumentsc s � �fdd�}| � |�S )zYInject parser options.
See `~.IPlugin.inject_parser_options` for docs.
c s$ �j d�t� �| �g|�R i |��S )Nz--{0}{1})�add_argument�formatr )Zarg_name_no_prefix�args�kwargs�r �parserr r r F s ���z)Plugin.inject_parser_options.<locals>.add)r )r r% r r r r$ r �inject_parser_options>