1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-21 19:01:07 +03:00

Respect config when stating challenge preferences

This commit is contained in:
Joe Ranweiler
2015-12-03 00:28:12 -08:00
parent 8cf47e3aba
commit dbf181ebac

View File

@@ -197,7 +197,8 @@ class Authenticator(common.Plugin):
def get_chall_pref(self, domain):
# pylint: disable=unused-argument,missing-docstring
return SUPPORTED_CHALLENGES
return [chall for chall in SUPPORTED_CHALLENGES
if chall in self.supported_challenges]
def perform(self, achalls): # pylint: disable=missing-docstring
if any(util.already_listening(port) for port in self._necessary_ports):