ipsec: unfortunately the previous was never empty()

PR: https://forum.opnsense.org/index.php?topic=42407.0
This commit is contained in:
Franco Fichtner 2024-08-26 20:26:26 +02:00
parent 1717cf05b5
commit 0e4cb12f3f

View File

@ -228,7 +228,7 @@ function ipsec_firewall(\OPNsense\Firewall\Plugin $fw)
{
global $config;
if (
empty((new \OPNsense\IPsec\IPsec())->general->disablevpnrules) &&
(string)(new \OPNsense\IPsec\IPsec())->general->disablevpnrules == '0' &&
isset($config['ipsec']['enable']) && isset($config['ipsec']['phase1'])
) {
$enable_replyto = empty($config['system']['disablereplyto']);