summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-11-10 18:18:36 +0000
committerErmal <eri@pfsense.org>2010-11-10 18:18:36 +0000
commitc422a1699881a79dd96efbb40c19c930da0b7448 (patch)
tree9a90b97ad35fa8e2177e79e229e3a5860f787454 /etc
parent0bb2879551389e31286ee1a9b56071273a8a5e33 (diff)
downloadpfsense-c422a1699881a79dd96efbb40c19c930da0b7448.zip
pfsense-c422a1699881a79dd96efbb40c19c930da0b7448.tar.gz
Actually was coorect before. 3rd parameter is length not index.
Revert "Correct this to make it actually work. This is also mentioned in Ticket #904 though it was already implemented." This reverts commit 6f2cc3a680f984ccbb387301a26d022e6969e665.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index e0f29d2..f5848d6 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -3235,7 +3235,7 @@ function interface_has_gateway($friendly) {
global $config;
if (!empty($config['interfaces'][$friendly])) {
- if (substr($friendly, 0, 4) == "ovpnc")
+ if (substr($friendly, 0, 5) == "ovpnc")
return true;
$ifname = &$config['interfaces'][$friendly];
switch ($ifname['ipaddr']) {
OpenPOWER on IntegriCloud