Comparison

core/certmanager.lua @ 4900:d885ca14362d

certmanager: tonumber() (fix for 0b8134015635)
author Matthew Wild <mwild1@gmail.com>
date Sat, 19 May 2012 21:57:40 +0100
parent 4899:0b8134015635
child 4925:55f6e0673e33
comparison
equal deleted inserted replaced
4899:0b8134015635 4900:d885ca14362d
16 local prosody = prosody; 16 local prosody = prosody;
17 local resolve_path = configmanager.resolve_relative_path; 17 local resolve_path = configmanager.resolve_relative_path;
18 local config_path = prosody.paths.config; 18 local config_path = prosody.paths.config;
19 19
20 local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)"); 20 local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)");
21 local luasec_has_noticket = luasec_major>0 or luasec_minor>=4; 21 local luasec_has_noticket = tonumber(luasec_major)>0 or tonumber(luasec_minor)>=4;
22 22
23 module "certmanager" 23 module "certmanager"
24 24
25 -- Global SSL options if not overridden per-host 25 -- Global SSL options if not overridden per-host
26 local default_ssl_config = configmanager.get("*", "core", "ssl"); 26 local default_ssl_config = configmanager.get("*", "core", "ssl");