summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-06-10 10:54:24 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-06-10 10:54:24 -0300
commit4cc2ae78d3027c349969437f08a88b1fb88c9de8 (patch)
treea99e75fcaec28802964e7fa8311fc6e5b45fdcc7 /etc
parente912bfae186b6b657daf52607f9d027f46be0478 (diff)
downloadpfsense-4cc2ae78d3027c349969437f08a88b1fb88c9de8.zip
pfsense-4cc2ae78d3027c349969437f08a88b1fb88c9de8.tar.gz
Revert "Fix #3700 and other syntax issues:"
This reverts commit e912bfae186b6b657daf52607f9d027f46be0478.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 6be3e27..f5aee01 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1314,13 +1314,12 @@ function interface_bring_down($interface = "wan", $destroy = false, $ifacecfg =
services_dhcpd_configure('inet6', $track6);
}
- $old_router = '';
if (file_exists("{$g['tmp_path']}/{$realif}_router"))
$old_router = trim(file_get_contents("{$g['tmp_path']}/{$realif}_router"));
// log_error("Checking for old router states: {$g['tmp_path']}/{$realif}_router = {$old_router}");
if (!empty($old_router)) {
log_error("Clearing states to old gateway {$old_router}.");
- mwexec("/sbin/pfctl -i " . escapeshellarg($realif) . " -Fs");
+ mwexec("/sbin/pfctl -i " . escapeshellarg($realif) . " -Fs -G {$old_router}");
}
/* remove interface up file if it exists */
OpenPOWER on IntegriCloud