Skip to content

Commit

Permalink
Unknown variable: '_saddr'
Browse files Browse the repository at this point in the history
  • Loading branch information
stjmt committed Jul 31, 2024
1 parent f846538 commit bd700bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/simplerule.epp
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
}
if $daddr =~ Stdlib::IP::Address::V6 or $daddr =~ Array[Stdlib::IP::Address::V6] {
$_daddr_type = 'ip6'
} elsif $saddr =~ Stdlib::IP::Address::V4 or $daddr =~ Array[Stdlib::IP::Address::V4] {
} elsif $daddr =~ Stdlib::IP::Address::V4 or $daddr =~ Array[Stdlib::IP::Address::V4] {
$_daddr_type = 'ip'
} else {
$_daddr_type = $set_type # ip or ip6
}
$_dst_hosts = "${_daddr_type} daddr ${_saddr}"
$_dst_hosts = "${_daddr_type} daddr ${_daddr}"
} else {
$_dst_hosts = undef
} -%>
Expand Down

0 comments on commit bd700bb

Please sign in to comment.