From 9ce384096ac052ae45051085a406c9680bf9140a Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 24 Apr 2007 00:27:17 +0000 Subject: 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. --- etc/inc/pfsense-utils.inc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'etc/inc/pfsense-utils.inc') diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 8528bc3..51a87e8 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -3378,7 +3378,22 @@ function is_dhcp_server_enabled() { function get_interfaces_with_gateway() { global $config; $ints = array(); - $ifdescrs = get_interface_list(); + $vfaces = array( + 'bridge.?*', + 'ppp.?*', + 'sl.?*', + 'gif.?*', + 'faith.?*', + 'lo.?*', + 'ng.?*', + 'vlan.?*', + 'pflog.?*', + 'pfsync.?*', + 'enc.?*', + 'tun.?*', + 'carp.?*' + ); + $ifdescrs = get_interface_list("active","physical",$vfaces); /* loop interfaces, check config for outbound */ foreach ($ifdescrs as $ifdescr => $ifname) { -- cgit v1.1