mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 13:59:02 -04:00
properly test for port number
This commit is contained in:
parent
874a4c6773
commit
77493d6e1a
3 changed files with 3 additions and 2 deletions
|
|
@ -412,7 +412,7 @@ class NginxConfigurator(common.Installer):
|
|||
Rank by how well these match target_name.
|
||||
|
||||
:param str target_name: The name to match
|
||||
:param str port: port number
|
||||
:param str port: port number as a string
|
||||
:returns: list of dicts containing the vhost, the matching name, and
|
||||
the numerical rank
|
||||
:rtype: list
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ class NginxHttp01(common.ChallengePerformer):
|
|||
|
||||
"""
|
||||
vhost = self.configurator.choose_redirect_vhost(achall.domain,
|
||||
self.configurator.config.http01_port, create_if_no_match=True)
|
||||
'%i' % self.configurator.config.http01_port, create_if_no_match=True)
|
||||
validation = achall.validation(achall.account_key)
|
||||
validation_path = self._get_validation_path(achall)
|
||||
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ def get_nginx_configurator(
|
|||
in_progress_dir=os.path.join(backups, "IN_PROGRESS"),
|
||||
server="https://acme-server.org:443/new",
|
||||
tls_sni_01_port=5001,
|
||||
http01_port=80
|
||||
),
|
||||
name="nginx",
|
||||
version=version)
|
||||
|
|
|
|||
Loading…
Reference in a new issue