X-Git-Url: https://git.distorted.org.uk/~mdw/userv-utils/blobdiff_plain/4a74cc46c5dd872f9e6083f2a85b487d5ffe3327..947ef3322ece5a0825c1add4c8b979b1814674df:/ipif/udptunnel-reconf.pl diff --git a/ipif/udptunnel-reconf.pl b/ipif/udptunnel-reconf.pl index 4e1a9aa..489593d 100755 --- a/ipif/udptunnel-reconf.pl +++ b/ipif/udptunnel-reconf.pl @@ -17,7 +17,7 @@ # along with userv-utils; if not, write to the Free Software # Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # -# $Id: udptunnel-reconf.pl,v 1.2 2000/12/11 02:41:27 ian Exp $ +# $Id: udptunnel-reconf.pl,v 1.3 2001/09/26 00:12:14 ian Exp $ use Socket; @@ -96,8 +96,10 @@ sub parse_addr_mask ($) { $forbid_remote= var_global('forbid_remote'); @forbid_remote= (); -foreach $r (split /[, \t]+/, $forbid_remote) { - push @forbid_remote, [ parse_addr_mask($r) ]; +if ($forbid_remote ne '-') { + foreach $r (split /[, \t]+/, $forbid_remote) { + push @forbid_remote, [ parse_addr_mask($r) ]; + } } sub ipif_permit ($$$$) {