Mercurial > prosody-modules
comparison mod_firewall/mod_firewall.lua @ 2579:5e948d1392a5
mod_firewall: Add some comments
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 25 Feb 2017 16:55:02 +0000 |
| parents | 6dbd07f9a868 |
| children | aaff2716f022 |
comparison
equal
deleted
inserted
replaced
| 2578:6dbd07f9a868 | 2579:5e948d1392a5 |
|---|---|
| 3 local resolve_relative_path = require "core.configmanager".resolve_relative_path; | 3 local resolve_relative_path = require "core.configmanager".resolve_relative_path; |
| 4 local logger = require "util.logger".init; | 4 local logger = require "util.logger".init; |
| 5 local it = require "util.iterators"; | 5 local it = require "util.iterators"; |
| 6 local set = require "util.set"; | 6 local set = require "util.set"; |
| 7 | 7 |
| 8 -- [definition_type] = definition_factory(param) | |
| 8 local definitions = module:shared("definitions"); | 9 local definitions = module:shared("definitions"); |
| 10 | |
| 11 -- When a definition instance has been instantiated, it lives here | |
| 12 -- [definition_type][definition_name] = definition_object | |
| 9 local active_definitions = { | 13 local active_definitions = { |
| 10 ZONE = { | 14 ZONE = { |
| 11 -- Default zone that includes all local hosts | 15 -- Default zone that includes all local hosts |
| 12 ["$local"] = setmetatable({}, { __index = prosody.hosts }); | 16 ["$local"] = setmetatable({}, { __index = prosody.hosts }); |
| 13 }; | 17 }; |
