mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
xdp-geoip: safe call to xdpgeoip init script
Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
@@ -85,6 +85,13 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save'}) {
|
||||
}
|
||||
|
||||
&General::writehash("$settingsfile", \%settings);
|
||||
|
||||
# Check if we want to disable locationblock.
|
||||
if ( $settings{'LOCATIONBLOCK_ENABLED'} eq "on" ) {
|
||||
&General::system('/usr/local/bin/xdpgeoipctrl', 'start');
|
||||
} else {
|
||||
&General::system('/usr/local/bin/xdpgeoipctrl', 'stop');
|
||||
}
|
||||
}
|
||||
|
||||
&Header::openpage($Lang::tr{'locationblock configuration'}, 1, '');
|
||||
|
||||
Reference in New Issue
Block a user