mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
wireguard: reload filter if we modified a device
PR: https://forum.opnsense.org/index.php?topic=37248.0
This commit is contained in:
parent
99a1f2ac9d
commit
4d50a8e062
@ -1067,7 +1067,7 @@ function openvpn_configure_single($id)
|
||||
}
|
||||
openvpn_reconfigure($mode, $settings);
|
||||
openvpn_restart($mode, $settings);
|
||||
configd_run('filter reload'); /* XXX really needed? */
|
||||
configd_run('filter reload'); /* XXX required for NAT rules, but needs coalescing */
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -1109,7 +1109,7 @@ function openvpn_configure_do($verbose = false, $interface = '', $carp_event = f
|
||||
}
|
||||
|
||||
if ($reconfigure_count > 0) {
|
||||
configd_run('filter reload'); /* XXX really needed? */
|
||||
configd_run('filter reload'); /* XXX required for NAT rules, but needs coalescing */
|
||||
}
|
||||
|
||||
service_log("done.\n", $verbose);
|
||||
|
||||
@ -294,5 +294,9 @@ if (isset($opts['h']) || empty($args) || !in_array($args[0], ['start', 'stop', '
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (count($server_devs)) {
|
||||
configd_run('filter reload'); /* XXX required for NAT rules, but needs coalescing */
|
||||
}
|
||||
}
|
||||
closelog();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user