mirror of
https://github.com/webmin/webmin.git
synced 2026-05-06 15:20:29 +01:00
18 lines
359 B
Perl
Executable File
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");
|