diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-25 21:17:54 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-25 21:17:54 +0000 |
commit | 04d26657a3402aed1c08997609167d5a14b42784 (patch) | |
tree | 2d83e8dd896ea9963c8bc01fad86f41c2a46861d | |
parent | 65c4d1ad6ee25815575f5cd3234f1b4bf17517d7 (diff) | |
download | pfsense-04d26657a3402aed1c08997609167d5a14b42784.zip pfsense-04d26657a3402aed1c08997609167d5a14b42784.tar.gz |
If for some reason an invalid element gets written out in config.xml
such as a blank fieldname, pfSense resstores the previous configuration.
However after restoring the configuration the WAN looses its configuration,
default gateway goes bye-bye, etc. Call reload_all() if we restore
a backup to ensure that the firewall is left in a working state.
-rw-r--r-- | etc/inc/config.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 044e6c6..c094e42 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -375,6 +375,7 @@ function restore_backup($file) { conf_mount_ro(); } config_unlock(); + reload_all(); } /****f* config/parse_config_bootup |