prosodyctl check: Include global options when checking "all options"
authorKim Alvefur <zash@zash.se>
Thu, 3 Dec 2015 14:51:22 +0000 (15:51 +0100)
committerKim Alvefur <zash@zash.se>
Thu, 3 Dec 2015 14:51:22 +0000 (15:51 +0100)
prosodyctl

index 76c05fa61af817f5b76d7b023b82e77ecf194aab..25bfd55b5c78b2cb24e5473cfde5a7ac02764a45 100755 (executable)
@@ -913,7 +913,7 @@ function commands.check(arg)
                                print("     For more information see: http://prosody.im/doc/dns");
                        end
                end
-               local all_options = set.new();
+               local all_options = set.new(it.to_array(it.keys(config["*"])));
                for host in enabled_hosts() do
                        all_options:include(set.new(it.to_array(it.keys(config[host]))));
                end