From bf369185b89e6557d2cc10ebbe0bc8cea560cb03 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 9 Aug 2019 10:58:23 +0200 Subject: [PATCH] Fix #1590 --- network/watchguard/snmp/mode/ipsectunnel.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/watchguard/snmp/mode/ipsectunnel.pm b/network/watchguard/snmp/mode/ipsectunnel.pm index f045258c5..25b180cc2 100644 --- a/network/watchguard/snmp/mode/ipsectunnel.pm +++ b/network/watchguard/snmp/mode/ipsectunnel.pm @@ -113,7 +113,7 @@ sub manage_selection { next if (!/$mapping->{wgIpsecTunnelLocalAddr}->{oid}\.(.*)/); my $instance = $1; my $result = $options{snmp}->map_instance(mapping => $mapping, results => $snmp_result, instance => $instance); - my $name = inet_ntoa($result->{wgIpsecTunnelLocalAddr}) . ':' . inet_ntoa($result->{wgIpsecTunnelPeerAddr}); + my $name = $result->{wgIpsecTunnelLocalAddr} . ':' . $result->{wgIpsecTunnelPeerAddr}; if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && $name !~ /$self->{option_results}->{filter_name}/) { $self->{output}->output_add(long_msg => "skipping '" . $result->{jnxIkeTunMonRemoteIdValue} . "': no matching filter name.", debug => 1);