mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix editing of rules in direct mode https://www.virtualmin.com/node/69443
This commit is contained in:
@@ -60,13 +60,13 @@ local $lnum = 0;
|
||||
local $direct = "ip${ipvx}tables-save 2>/dev/null |";
|
||||
if (!$file) {
|
||||
# Use default file
|
||||
$file = $config{"direct${ipvx}"} ? $direct : $ipvx_save;
|
||||
$file = $config{"direct${ipvx}"} ? $direct : "<".$ipvx_save;
|
||||
}
|
||||
elsif ($file eq "direct") {
|
||||
# Read active rules
|
||||
$file = $direct;
|
||||
}
|
||||
open(FILE, "<".$file);
|
||||
open(FILE, $file);
|
||||
local $cmt;
|
||||
LINE:
|
||||
while(<FILE>) {
|
||||
|
||||
Reference in New Issue
Block a user