@@ -2,6 +2,7 @@
[userv-utils] / ipif / udptunnel-reconf.pl
index e21d123..7fd14bc 100755 (executable)
@@ -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 ($$$$) {