From 400bdbc4380af9e0cb61d3c88529aab77983a03c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 2 May 2014 08:27:29 +0200 Subject: prosodyctl: Use correct variable in check certs --- prosodyctl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prosodyctl') diff --git a/prosodyctl b/prosodyctl index 7280ab88..2f9a7849 100755 --- a/prosodyctl +++ b/prosodyctl @@ -1115,8 +1115,8 @@ function commands.check(arg) print(" Not vaild for client connections to "..host..".") cert_ok = false end - if (not (config.get(name, "anonymous_login") - or config.get(name, "authentication") == "anonymous")) + if (not (config.get(host, "anonymous_login") + or config.get(host, "authentication") == "anonymous")) and not x509_verify_identity(host, "_xmpp-client", cert) then print(" Not vaild for server-to-server connections to "..host..".") cert_ok = false -- cgit v1.2.3