diff options
author | gnhb <gnoahb@gmail.com> | 2011-01-23 09:49:51 +0700 |
---|---|---|
committer | gnhb <gnoahb@gmail.com> | 2011-01-23 09:49:51 +0700 |
commit | 3eb00b491f82d048837bb93a5558e2edf6062e2e (patch) | |
tree | 9f6c724e87fe35b2645c19698d6a2df3362ff13d | |
parent | e9d6c27f64d12fdb26514fcbda1b741a58845afa (diff) | |
download | pfsense-3eb00b491f82d048837bb93a5558e2edf6062e2e.zip pfsense-3eb00b491f82d048837bb93a5558e2edf6062e2e.tar.gz |
We don't want to detach netgraph nodes from interfaces that are used by
any PPPoE/PPTP/L2TP configurations.
-rw-r--r-- | etc/inc/interfaces.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index a414bd7..59f74c2 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -126,6 +126,13 @@ function interface_netgraph_needed($interface = "wan") { $found = true; break; } + $ports = explode(',',$ppp['ports']); + foreach($ports as $pid => $port){ + if ($realif == $port) { + $found = true; + break; + } + } } } } |