# HG changeset patch # User Matthew Wild # Date 1337461060 -3600 # Node ID d885ca14362d9df3f090c6679f99e8c46c7bd017 # Parent 0b81340156357dc8dc0b586fa55133c50a67c215 certmanager: tonumber() (fix for 0b8134015635) diff -r 0b8134015635 -r d885ca14362d core/certmanager.lua --- 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"