From 4cc2ae78d3027c349969437f08a88b1fb88c9de8 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 10 Jun 2014 10:54:24 -0300 Subject: Revert "Fix #3700 and other syntax issues:" This reverts commit e912bfae186b6b657daf52607f9d027f46be0478. --- etc/inc/interfaces.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'etc') 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 */ -- cgit v1.1