From 6e558b91bf1ae9bf3ef320db58ec9a1329a01d62 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 3 Aug 2026 15:10:21 -0700 Subject: [PATCH] Some zone_field callers just expect a single value --- shorewall/shorewall-lib.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shorewall/shorewall-lib.pl b/shorewall/shorewall-lib.pl index 59d5503ac..c432378e7 100755 --- a/shorewall/shorewall-lib.pl +++ b/shorewall/shorewall-lib.pl @@ -414,7 +414,8 @@ if ($other) { elsif (!$found) { push(@opts, [ $value, $value ]); } -return (&ui_select($name, $value, \@opts), $found); +my $sel = &ui_select($name, $value, \@opts); +return wantarray ? ($sel, $found) : $sel; } # iface_field(name, value)