prosodyctl: check: Don't complain about c2s_ssl or s2s_ssl being in VirtualHost sections, that's supported
authorKim Alvefur <zash@zash.se>
Wed, 21 Oct 2015 13:37:26 +0200
changeset 6917 5df76208e050
parent 6916 c7a0d5299933
child 6918 9d74373d621e
prosodyctl: check: Don't complain about c2s_ssl or s2s_ssl being in VirtualHost sections, that's supported
prosodyctl
--- a/prosodyctl	Wed Oct 21 01:56:07 2015 +0200
+++ b/prosodyctl	Wed Oct 21 13:37:26 2015 +0200
@@ -890,7 +890,7 @@
 			for name in pairs(options) do
 				if name:match("^interfaces?")
 				or name:match("_ports?$") or name:match("_interfaces?$")
-				or name:match("_ssl$") then
+				or (name:match("_ssl$") and not name:match("^[cs]2s_ssl$")) then
 					misplaced_options:add(name);
 				end
 			end