diff options
-rw-r--r-- | lib/AdminPanel/Shared/Shorewall.pm | 7 |
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 { |