summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-03-01 15:03:39 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-03-01 15:03:39 -0300
commit244dee8142cbe9d48eddf0cad9ddde853b61dd7a (patch)
treeb7998661653f9f928d572c11a39e1bf05725f1a6 /usr
parentd09e69da07100366b94e4f202c2a5c1cc615e5b3 (diff)
downloadpfsense-244dee8142cbe9d48eddf0cad9ddde853b61dd7a.zip
pfsense-244dee8142cbe9d48eddf0cad9ddde853b61dd7a.tar.gz
Reconfigure routing when a new gateway is added
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index bc6b9ff..0be890b 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -373,6 +373,9 @@ if ($_POST['apply']) {
filter_configure();
enable_rrd_graphing();
+
+ if (is_subsystem_dirty('staticroutes') && (system_routing_configure() == 0))
+ clear_subsystem_dirty('staticroutes');
}
@unlink("{$g['tmp_path']}/.interfaces.apply");
header("Location: interfaces.php?if={$if}");
OpenPOWER on IntegriCloud