diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-06-10 11:28:27 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-06-10 11:28:27 -0300 |
commit | b2821f7df277e851699a321cd6e9dcbec3af9eb2 (patch) | |
tree | 5c39d837612a5895b7ce82ddf8a98b98cec62981 /etc/inc/interfaces.inc | |
parent | ab3c1e240b0a3f13061f41a40acd2bbebee8a73f (diff) | |
download | pfsense-b2821f7df277e851699a321cd6e9dcbec3af9eb2.zip pfsense-b2821f7df277e851699a321cd6e9dcbec3af9eb2.tar.gz |
Revert "Revert "Fix #3700 and other syntax issues:""
This reverts commit 4cc2ae78d3027c349969437f08a88b1fb88c9de8.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index f5aee01..6be3e27 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1314,12 +1314,13 @@ 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 -G {$old_router}"); + mwexec("/sbin/pfctl -i " . escapeshellarg($realif) . " -Fs"); } /* remove interface up file if it exists */ |