diff options
author | Ermal <eri@pfsense.org> | 2010-11-10 18:27:51 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-11-10 18:27:51 +0000 |
commit | e9d7afeb4ee833c506f7a9d73639de7367408623 (patch) | |
tree | 01c38a9cffce10f7f91711ae2c7bfb58177e19ae /etc/inc | |
parent | f6b30142f7f6cdc3d20ffd187be3dc528fd88cdc (diff) | |
download | pfsense-e9d7afeb4ee833c506f7a9d73639de7367408623.zip pfsense-e9d7afeb4ee833c506f7a9d73639de7367408623.tar.gz |
Ticket #904. Hmm fix the interface_has_gateway() too.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index aa1a3a0..bffb152 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -3233,8 +3233,6 @@ function interface_has_gateway($friendly) { global $config; if (!empty($config['interfaces'][$friendly])) { - if (substr($friendly, 0, 5) == "ovpnc") - return true; $ifname = &$config['interfaces'][$friendly]; switch ($ifname['ipaddr']) { case "dhcp": @@ -3246,6 +3244,8 @@ function interface_has_gateway($friendly) { return true; break; default: + if (substr($ifname['if'], 0, 5) == "ovpnc") + return true; if (!empty($ifname['gateway'])) return true; break; |