equal
deleted
inserted
replaced
4 local secure_domains, insecure_domains = |
4 local secure_domains, insecure_domains = |
5 module:get_option_set("s2s_secure_domains", {})._items, module:get_option_set("s2s_insecure_domains", {})._items; |
5 module:get_option_set("s2s_secure_domains", {})._items, module:get_option_set("s2s_insecure_domains", {})._items; |
6 |
6 |
7 local untrusted_fail_watchers = module:get_option_set("untrusted_fail_watchers", module:get_option("admins", {})) / jid_prep; |
7 local untrusted_fail_watchers = module:get_option_set("untrusted_fail_watchers", module:get_option("admins", {})) / jid_prep; |
8 local untrusted_fail_notification = module:get_option("untrusted_fail_notification", "Establishing a secure connection from $from_host to $to_host failed. Certificate hash: $sha256. $errors"); |
8 local untrusted_fail_notification = module:get_option("untrusted_fail_notification", "Establishing a secure connection from $from_host to $to_host failed. Certificate hash: $sha256. $errors"); |
|
9 |
|
10 local msg_type = module:get_option_string("untrusted_message_type", "chat"); |
9 |
11 |
10 local st = require "util.stanza"; |
12 local st = require "util.stanza"; |
11 |
13 |
12 local notified_about_already = { }; |
14 local notified_about_already = { }; |
13 |
15 |