mirror of
https://github.com/webmin/webmin.git
synced 2026-05-06 23:30:29 +01:00
Import https://github.com/swelljoe/nftables into the Webmin tree under nftables/ while preserving upstream history.
17 lines
304 B
Perl
Executable File
17 lines
304 B
Perl
Executable File
#!/usr/bin/perl
|
|
# apply.cgi
|
|
# Apply the current configuration
|
|
|
|
require './nftables-lib.pl'; ## no critic
|
|
use strict;
|
|
use warnings;
|
|
our (%in, %text);
|
|
ReadParse();
|
|
error_setup($text{'apply_err'});
|
|
|
|
my @tables = get_nftables_save();
|
|
my $err = apply_restore();
|
|
error($err) if ($err);
|
|
|
|
redirect("index.cgi");
|