security/acme-client: try to solve disconnection issues

This commit is contained in:
Frank Wall
2017-04-03 14:59:40 +02:00
parent 2974fb9d6c
commit 5c864ddf97
@@ -723,6 +723,8 @@ function run_acme_validation($certObj, $valObj, $acctObj)
// HTTP-01: flush OPNsense port forward rules
if (($val_method == 'http01') and ((string)$valObj->http_service == 'opnsense')) {
mwexec('/sbin/pfctl -a acme-client -F all');
# XXX: workaround to solve disconnection issues reported by some users
$response = $backend->configdRun('filter reload');
}
// Check validation result