Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/core/certmanager.lua Sat May 19 21:53:43 2012 +0100 +++ b/core/certmanager.lua Sat May 19 21:57:40 2012 +0100 @@ -18,7 +18,7 @@ local config_path = prosody.paths.config; local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)"); -local luasec_has_noticket = luasec_major>0 or luasec_minor>=4; +local luasec_has_noticket = tonumber(luasec_major)>0 or tonumber(luasec_minor)>=4; module "certmanager"