diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 34cbac2d9f..c8272ef4d5 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2993,6 +2993,8 @@ function get_interfaces_with_gateway() { /* loop interfaces, check config for outbound */ foreach($config['interfaces'] as $ifdescr => $ifname) { + if (substr($ifdescr, 0, 4) == "ovpn") + return true; switch ($ifname['ipaddr']) { case "dhcp": @@ -3018,6 +3020,8 @@ function interface_has_gateway($friendly) { global $config; if (!empty($config['interfaces'][$friendly])) { + if (substr($friendly, 0, 4) == "ovpn") + return true; $ifname =& $config['interfaces'][$friendly]; switch ($ifname['ipaddr']) { case "dhcp": @@ -3224,4 +3228,4 @@ function setup_pppoe_reset_file($pppif, $iface="") { unlink_if_exists($cron_file); } -?> \ No newline at end of file +?>