Software /
code /
prosody
Changeset
6161:afcba9737ac3
prosodyctl: Use correct variable in check certs
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 02 May 2014 08:27:29 +0200 |
parents | 6160:cf0f7caa885e |
children | 6162:fbc3b195dab8 |
files | prosodyctl |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/prosodyctl Fri May 02 08:21:56 2014 +0200 +++ b/prosodyctl Fri May 02 08:27:29 2014 +0200 @@ -1115,8 +1115,8 @@ 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