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)