Merge pull request #2352 from letsencrypt/2348

More helpful error messages if trying to renew with standalone and bound ports
This commit is contained in:
bmw
2016-02-09 15:53:53 -08:00
3 changed files with 14 additions and 4 deletions
+2 -1
View File
@@ -203,7 +203,8 @@ class Authenticator(common.Plugin):
return self.supported_challenges
def perform(self, achalls): # pylint: disable=missing-docstring
if any(util.already_listening(port) for port in self._necessary_ports):
renewer = self.config.verb == "renew"
if any(util.already_listening(port, renewer) for port in self._necessary_ports):
raise errors.MisconfigurationError(
"At least one of the (possibly) required ports is "
"already taken.")