Diff

prosodyctl @ 6914:5df76208e050

prosodyctl: check: Don't complain about c2s_ssl or s2s_ssl being in VirtualHost sections, that's supported
author Kim Alvefur <zash@zash.se>
date Wed, 21 Oct 2015 13:37:26 +0200
parent 6845:bb7854355df1
child 6957:e442016918a9
line wrap: on
line diff
--- 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