From 56b443176a5c8ff72795b77d43f0dad41e5c5d18 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 26 May 2022 14:49:57 -0700 Subject: [PATCH] tapnet: don't double-declare @forwards Signed-off-by: Adam Williamson --- lib/tapnet.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/tapnet.pm b/lib/tapnet.pm index 3b876fab..28864f46 100644 --- a/lib/tapnet.pm +++ b/lib/tapnet.pm @@ -58,7 +58,6 @@ sub setup_tap_static { sub get_host_dns { # get DNS server addresses from the host. Assumes host uses # systemd-resolved and doesn't use IPv6, for now - my @forwards; my $result = `/usr/bin/resolvectl status | grep Servers | tail -1 | cut -d: -f2-`; # FIXME this is gonna break when we have IPv6 DNS servers on the # worker hosts