prosodyctl: Use correct variable in check certs
authorKim Alvefur <zash@zash.se>
Fri, 2 May 2014 06:27:29 +0000 (08:27 +0200)
committerKim Alvefur <zash@zash.se>
Fri, 2 May 2014 06:27:29 +0000 (08:27 +0200)
prosodyctl

index 7280ab88812473540b1365da50d4bdde21a72b5f..2f9a7849829f3a0c5135474d679efcceca4dd4a9 100755 (executable)
@@ -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