Files
webmin/nftables/restart.cgi
Ilia Ross 44ff20e5c6
Some checks failed
webmin.dev: webmin/webmin / build (push) Has been cancelled
Fix to perltidy new nftables module to convert spaces to tabs
2026-05-03 22:36:31 +02:00

18 lines
359 B
Perl
Executable File

#!/usr/bin/perl
# restart.cgi
# Apply saved nftables configuration from the header action
require './nftables-lib.pl'; ## no critic
use strict;
use warnings;
our (%in, %text);
ReadParse();
error_setup($text{'apply_err'});
assert_acl('apply');
my $err = apply_restore();
error($err) if ($err);
webmin_log("apply");
redirect($in{'redir'} || "index.cgi");