Révision d026178f
Ajouté par Renato Botelho il y a environ 11 ans
usr/local/www/xmlrpc.php | ||
---|---|---|
39 | 39 |
require("config.inc"); |
40 | 40 |
require("functions.inc"); |
41 | 41 |
require("filter.inc"); |
42 |
require("ipsec.inc"); |
|
43 |
require("vpn.inc"); |
|
42 | 44 |
require("shaper.inc"); |
43 | 45 |
require("xmlrpc_server.inc"); |
44 | 46 |
require("xmlrpc.inc"); |
... | ... | |
166 | 168 |
function restore_config_section_xmlrpc($raw_params) { |
167 | 169 |
global $config, $xmlrpc_g; |
168 | 170 |
|
171 |
$old_config = $config; |
|
172 |
|
|
169 | 173 |
if (xmlrpc_loop_detect()) |
170 | 174 |
log_error("Disallowing CARP sync loop"); |
171 | 175 |
|
... | ... | |
270 | 274 |
interface_proxyarp_configure(); |
271 | 275 |
} |
272 | 276 |
|
277 |
if (isset($old_config['ipsec']['enable']) !== isset($config['ipsec']['enable'])) |
|
278 |
vpn_ipsec_configure(); |
|
279 |
|
|
280 |
unset($old_config); |
|
281 |
|
|
273 | 282 |
return $xmlrpc_g['return']['true']; |
274 | 283 |
} |
275 | 284 |
|
Formats disponibles : Unified diff
Make sure we create / delete SPDs and SADs on secondary node when it changes on primary. Fixes #2303