diff options
author | Chris Buechler <cmb@pfsense.org> | 2014-11-16 00:05:00 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2014-11-16 00:05:00 -0600 |
commit | f2b4a29b373672c912a6288a98c2516023dfb4a1 (patch) | |
tree | 4537424d45bb362be696dd3376e0d18034a8b475 /etc | |
parent | 9a25a85d3ef7c6cc71e543f95f3ec3bb4a0a348e (diff) | |
download | pfsense-f2b4a29b373672c912a6288a98c2516023dfb4a1.zip pfsense-f2b4a29b373672c912a6288a98c2516023dfb4a1.tar.gz |
Don't try to clear states to gateway, all that does is wipe the entire state table unnecessarily. rc.newwanip takes care of killing states appropriately as needed when an IP changes.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 7bb983e..c2f9f60 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1341,11 +1341,6 @@ function interface_bring_down($interface = "wan", $destroy = false, $ifacecfg = $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"); - } /* remove interface up file if it exists */ unlink_if_exists("{$g['tmp_path']}/{$realif}up"); |