mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-16 03:10:39 +01:00
rename ipseczones() to haveipseczones()
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6274 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
ab7c4200b1
commit
cf3650bbe3
@ -125,7 +125,7 @@ sub validate_hosts_file()
|
||||
progress_message " Host \"$line\" validated";
|
||||
}
|
||||
|
||||
$capabilities{POLICY_MATCH} = '' unless $ipsec || ipseczones;
|
||||
$capabilities{POLICY_MATCH} = '' unless $ipsec || haveipseczones;
|
||||
}
|
||||
#
|
||||
# Returns a reference to a array of host entries. Each entry is a
|
||||
|
@ -39,7 +39,7 @@ our @EXPORT = qw( NOTHING
|
||||
determine_zones
|
||||
zone_report
|
||||
dump_zone_contents
|
||||
ipseczones
|
||||
haveipseczones
|
||||
|
||||
@zones
|
||||
%zones
|
||||
@ -286,7 +286,7 @@ sub determine_zones()
|
||||
#
|
||||
# Return true of we have any ipsec zones
|
||||
#
|
||||
sub ipseczones() {
|
||||
sub haveipseczones() {
|
||||
for my $zoneref ( values %zones ) {
|
||||
return 1 if $zoneref->{type} eq 'ipsec4';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user