prosodyctl: check: Don't complain about c2s_ssl or s2s_ssl being in VirtualHost secti...
authorKim Alvefur <zash@zash.se>
Wed, 21 Oct 2015 11:37:26 +0000 (13:37 +0200)
committerKim Alvefur <zash@zash.se>
Wed, 21 Oct 2015 11:37:26 +0000 (13:37 +0200)
prosodyctl

index e4e22322d873dd7953c28917852ec2b2a2d297ac..76c05fa61af817f5b76d7b023b82e77ecf194aab 100755 (executable)
@@ -890,7 +890,7 @@ function commands.check(arg)
                        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