summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/ipsec.attributes.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/ipsec.attributes.php b/etc/inc/ipsec.attributes.php
index e8507d7..2fee525 100644
--- a/etc/inc/ipsec.attributes.php
+++ b/etc/inc/ipsec.attributes.php
@@ -176,9 +176,9 @@ function parse_cisco_acl($attribs) {
$rules = parse_cisco_acl($attributes);
if (!empty($rules)) {
$pid = posix_getpid();
- @file_put_contents("/tmp/{$pid}{$common_name}.rules", $rules);
- mwexec("/sbin/pfctl -a \"ipsec/{$common_name}\" -f {$g['tmp_path']}/{$pid}{$common_name}.rules");
- @unlink("{$g['tmp_path']}/{$pid}{$common_name}.rules");
+ @file_put_contents("/tmp/ipsec_{$pid}{$common_name}.rules", $rules);
+ mwexec("/sbin/pfctl -a \"ipsec/{$common_name}\" -f {$g['tmp_path']}/ipsec_{$pid}{$common_name}.rules");
+ @unlink("{$g['tmp_path']}/ipsec_{$pid}{$common_name}.rules");
}
?>
OpenPOWER on IntegriCloud