Now successfully parsing the larger policy set

This commit is contained in:
Peter Eckersley 2014-06-11 09:51:56 -07:00
parent 3712a45399
commit 34cba3accf

View file

@ -55,7 +55,7 @@ class Config:
self.tls_policies[domain] = {} # being here enforces TLS at all
for policy, value in policies.items():
if policy == "min-tls-version":
reasonable = ["TLS", "TLSv1.1", "TLSv1.2", "TLSv1.3"]
reasonable = ["TLS", "TLSv1", "TLSv1.1", "TLSv1.2", "TLSv1.3"]
if not value in reasonable:
raise ValueError, "Not a valid TLS version string: " + `value`
self.tls_policies[domain]["min-tls-version"] = str(value)