aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/s2smanager.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index be5c04fc..0990a0aa 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -376,7 +376,10 @@ end
local function check_cert_status(session)
local conn = session.conn:socket()
- local cert = conn:getpeercertificate()
+ local cert
+ if conn.getpeercertificate then
+ cert = conn:getpeercertificate()
+ end
if cert then
local chain_valid, err = conn:getpeerchainvalid()