mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 00:22:04 +02:00
add deprication
This commit is contained in:
@@ -3,6 +3,7 @@ import argparse
|
|||||||
import collections
|
import collections
|
||||||
import logging
|
import logging
|
||||||
import socket
|
import socket
|
||||||
|
import sys
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
import OpenSSL
|
import OpenSSL
|
||||||
@@ -119,6 +120,8 @@ def supported_challenges_validator(data):
|
|||||||
It should be passed as `type` argument to `add_argument`.
|
It should be passed as `type` argument to `add_argument`.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
sys.stderr.write("WARNING: The standalone specific supported challenges flag is depricated")
|
||||||
|
sys.stderr.write("\nPlease use the --preferred-challenges flag instead.\n")
|
||||||
challs = data.split(",")
|
challs = data.split(",")
|
||||||
|
|
||||||
# tls-sni-01 was dvsni during private beta
|
# tls-sni-01 was dvsni during private beta
|
||||||
@@ -177,7 +180,7 @@ class Authenticator(common.Plugin):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def add_parser_arguments(cls, add):
|
def add_parser_arguments(cls, add):
|
||||||
add("supported-challenges",
|
add("supported-challenges",
|
||||||
help="Supported challenges. Preferred in the order they are listed.",
|
help=argparse.SUPPRESS,
|
||||||
type=supported_challenges_validator,
|
type=supported_challenges_validator,
|
||||||
default=",".join(chall.typ for chall in SUPPORTED_CHALLENGES))
|
default=",".join(chall.typ for chall in SUPPORTED_CHALLENGES))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user