Revision 2700ef96
Added by Pi Ba about 11 years ago
etc/inc/interfaces.inc | ||
---|---|---|
4960 | 4960 |
default: |
4961 | 4961 |
if (substr($ifname['if'], 0, 4) == "ovpn") |
4962 | 4962 |
return true; |
4963 |
$tunnelif = substr($ifname['if'], 0, 3); |
|
4964 |
if ($tunnelif == "gif" || $tunnelif == "gre") |
|
4965 |
return true; |
|
4963 | 4966 |
if (!empty($ifname['gateway'])) |
4964 | 4967 |
return true; |
4965 | 4968 |
break; |
Also available in: Unified diff
add gre and gif checks for for IPv4 function interface_has_gateway($friendly), like they are already for IPv6