diff options
author | Ermal <eri@pfsense.org> | 2010-07-29 13:01:46 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-07-29 13:01:46 +0000 |
commit | 9c43432adcddfe8a6565ab5b277c40704afab594 (patch) | |
tree | 97b932f45e3f5846c083c9b2865273bcd3bea6b8 | |
parent | 7970b622b4d39318a2faecd604f4f257c63a7c3f (diff) | |
download | pfsense-9c43432adcddfe8a6565ab5b277c40704afab594.zip pfsense-9c43432adcddfe8a6565ab5b277c40704afab594.tar.gz |
Ticket #752. Actually do this only for openvpn client instances.
-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 c8272ef..0b7cc66 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2993,7 +2993,7 @@ function get_interfaces_with_gateway() { /* loop interfaces, check config for outbound */ foreach($config['interfaces'] as $ifdescr => $ifname) { - if (substr($ifdescr, 0, 4) == "ovpn") + if (substr($ifdescr, 0, 5) == "ovpnc") return true; switch ($ifname['ipaddr']) { @@ -3020,7 +3020,7 @@ function interface_has_gateway($friendly) { global $config; if (!empty($config['interfaces'][$friendly])) { - if (substr($friendly, 0, 4) == "ovpn") + if (substr($friendly, 0, 5) == "ovpnc") return true; $ifname =& $config['interfaces'][$friendly]; switch ($ifname['ipaddr']) { |