Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryomna <ynasser@users.noreply.github.com>2017-04-27 20:46:33 +0300
committerohemorange <ebportnoy@gmail.com>2017-04-27 20:46:33 +0300
commit72fa27514e1b212fa59635ecc05acedffaa631fb (patch)
tree09f71913806fb82e047c4a5ae5d037771f7bd40f /certbot-nginx
parent1611df4120bc6ed5bbbe9202070b52c6d2db0741 (diff)
fix for issue 4132: increasing server_names_hash_bucket_size if necessary (#4496)
* increases server_names_hash_bucket_size if it's too low in your nginx conf * switching from k,v pairwise indices -> inner_line * simply using bucket_directive
Diffstat (limited to 'certbot-nginx')
-rw-r--r--certbot-nginx/certbot_nginx/tls_sni_01.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/certbot-nginx/certbot_nginx/tls_sni_01.py b/certbot-nginx/certbot_nginx/tls_sni_01.py
index 2e8125911..347d9f21f 100644
--- a/certbot-nginx/certbot_nginx/tls_sni_01.py
+++ b/certbot-nginx/certbot_nginx/tls_sni_01.py
@@ -100,9 +100,13 @@ class NginxTlsSni01(common.TLSSNI01):
if line[0] == ['http']:
body = line[1]
found_bucket = False
+ posn = 0
for inner_line in body:
if inner_line[0] == bucket_directive[1]:
+ if int(inner_line[1]) < int(bucket_directive[3]):
+ body[posn] = bucket_directive
found_bucket = True
+ posn += 1
if not found_bucket:
body.insert(0, bucket_directive)
if include_directive not in body: