summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 273d7e9..37431bb 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, 5) == "ovpnc")
+ if (substr($friendly, 0, 4) == "ovpnc")
return true;
$ifname = &$config['interfaces'][$friendly];
switch ($ifname['ipaddr']) {
OpenPOWER on IntegriCloud