Software / code / prosody
Comparison
prosodyctl @ 6161:afcba9737ac3
prosodyctl: Use correct variable in check certs
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 02 May 2014 08:27:29 +0200 |
| parent | 6160:cf0f7caa885e |
| child | 6162:fbc3b195dab8 |
comparison
equal
deleted
inserted
replaced
| 6160:cf0f7caa885e | 6161:afcba9737ac3 |
|---|---|
| 1113 if config.get(host, "component_module") == nil | 1113 if config.get(host, "component_module") == nil |
| 1114 and not x509_verify_identity(host, "_xmpp-client", cert) then | 1114 and not x509_verify_identity(host, "_xmpp-client", cert) then |
| 1115 print(" Not vaild for client connections to "..host..".") | 1115 print(" Not vaild for client connections to "..host..".") |
| 1116 cert_ok = false | 1116 cert_ok = false |
| 1117 end | 1117 end |
| 1118 if (not (config.get(name, "anonymous_login") | 1118 if (not (config.get(host, "anonymous_login") |
| 1119 or config.get(name, "authentication") == "anonymous")) | 1119 or config.get(host, "authentication") == "anonymous")) |
| 1120 and not x509_verify_identity(host, "_xmpp-client", cert) then | 1120 and not x509_verify_identity(host, "_xmpp-client", cert) then |
| 1121 print(" Not vaild for server-to-server connections to "..host..".") | 1121 print(" Not vaild for server-to-server connections to "..host..".") |
| 1122 cert_ok = false | 1122 cert_ok = false |
| 1123 end | 1123 end |
| 1124 end | 1124 end |