Revision 8b1f5806
Added by Scott Ullrich over 18 years ago
etc/inc/pfsense-utils.inc | ||
---|---|---|
3307 | 3307 |
function get_interfaces_with_gateway() { |
3308 | 3308 |
global $config; |
3309 | 3309 |
$ints = array(); |
3310 |
$ifdescrs = get_interface_list(); |
|
3310 |
$vfaces = array( |
|
3311 |
'bridge.?*', |
|
3312 |
'ppp.?*', |
|
3313 |
'sl.?*', |
|
3314 |
'gif.?*', |
|
3315 |
'faith.?*', |
|
3316 |
'lo.?*', |
|
3317 |
'ng.?*', |
|
3318 |
'vlan.?*', |
|
3319 |
'pflog.?*', |
|
3320 |
'pfsync.?*', |
|
3321 |
'enc.?*', |
|
3322 |
'tun.?*', |
|
3323 |
'carp.?*' |
|
3324 |
); |
|
3325 |
$ifdescrs = get_interface_list("active","physical",$vfaces); |
|
3326 |
|
|
3311 | 3327 |
|
3312 | 3328 |
/* loop interfaces, check config for outbound */ |
3313 | 3329 |
foreach ($ifdescrs as $ifdescr => $ifname) { |
Also available in: Unified diff
The earlier fix from today that fixed get_interfaces_with_gateways() created new problem where all interfaces would show up in assign_interfaces screen and other places. Instead of showing them all by default teach get_interfaces_with_gateways() how to extract the complete list.