aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatteo Pasotti <matteo.pasotti@gmail.com>2015-01-08 12:50:02 +0100
committerMatteo Pasotti <matteo.pasotti@gmail.com>2015-01-08 12:50:02 +0100
commit48edd028fc3d2c72866fbee9d1f1bc91ddf11568 (patch)
tree57f8b0de09cce5b27bb85696e5fd42af3e40786b
parentf0499a9f135c2559bdbab380cb934e4bb105eb80 (diff)
downloadmanatools-48edd028fc3d2c72866fbee9d1f1bc91ddf11568.tar
manatools-48edd028fc3d2c72866fbee9d1f1bc91ddf11568.tar.gz
manatools-48edd028fc3d2c72866fbee9d1f1bc91ddf11568.tar.bz2
manatools-48edd028fc3d2c72866fbee9d1f1bc91ddf11568.tar.xz
manatools-48edd028fc3d2c72866fbee9d1f1bc91ddf11568.zip
added brief comment explaining how to read shorewall conf from now on
-rw-r--r--lib/AdminPanel/Shared/Shorewall.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/AdminPanel/Shared/Shorewall.pm b/lib/AdminPanel/Shared/Shorewall.pm
index af18d60e..f043e86d 100644
--- a/lib/AdminPanel/Shared/Shorewall.pm
+++ b/lib/AdminPanel/Shared/Shorewall.pm
@@ -108,8 +108,15 @@ sub read_ {
return \%conf;
+ # get_zones has been moved to AdminPanel::Module::Firewall cause it requires
+ # user interaction thus it should be logically separated by shorewall
# get_zones(\%conf);
# get_config_file('zones', $ver) && \%conf;
+ # consequently, to read shorewall conf
+ # you have to do something like this now (within Module::Firewall)
+ # my $conf = AdminPanel::Shared::Shorewall::read_();
+ # OPTIONAL: my $self->get_zones(\$conf)
+ # my $shorewall = AdminPanel::Shared::Shorewall::get_config_file('zones', '') && $conf;
}
sub ports_by_proto {