Software / code / prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
| 6913:c7a0d5299933 | 6914:5df76208e050 |
|---|---|
| 888 local host_options = set.new(it.to_array(it.keys(options))); | 888 local host_options = set.new(it.to_array(it.keys(options))); |
| 889 local misplaced_options = set.intersection(host_options, known_global_options); | 889 local misplaced_options = set.intersection(host_options, known_global_options); |
| 890 for name in pairs(options) do | 890 for name in pairs(options) do |
| 891 if name:match("^interfaces?") | 891 if name:match("^interfaces?") |
| 892 or name:match("_ports?$") or name:match("_interfaces?$") | 892 or name:match("_ports?$") or name:match("_interfaces?$") |
| 893 or name:match("_ssl$") then | 893 or (name:match("_ssl$") and not name:match("^[cs]2s_ssl$")) then |
| 894 misplaced_options:add(name); | 894 misplaced_options:add(name); |
| 895 end | 895 end |
| 896 end | 896 end |
| 897 if not misplaced_options:empty() then | 897 if not misplaced_options:empty() then |
| 898 ok = false; | 898 ok = false; |