Use return_gateway_groups_array() to build correct GWG list
Use return_gateway_groups_array() to build correct GWG list

Now return_gateway_groups_array() always returns at least the IP version 'ipprotocol' of each GWG, even if all its members are down at present. It is better to use this to check what IP version the GWG is. The previous check was using the IP address of the first member of the GWG to deduce 'ipprotocol'. That would fail if the WAN was DHCP and was down.
dennypage/pfsense,pfsense/pfsense,phil-davis/pfsense,NewEraCracker/pfsense,pfsense/pfsense,NOYB/pfsense,jxmx/pfsense,brunostein/pfsense,brunostein/pfsense,dennypage/pfsense,brunostein/pfsense,jxmx/pfsense,ch1c4um/pfsense,ptorsten/pfsense,phil-davis/pfsense,ptorsten/pfsense,dennypage/pfsense,jxmx/pfsense,pfsense/pfsense,phil-davis/pfsense,NewEraCracker/pfsense,NOYB/pfsense,BlackstarGroup/pfsense,ch1c4um/pfsense,BlackstarGroup/pfsense,NewEraCracker/pfsense,ch1c4um/pfsense,ptorsten/pfsense,NewEraCracker/pfsense,ch1c4um/pfsense,phil-davis/pfsense,pfsense/pfsense,BlackstarGroup/pfsense,NOYB/pfsense,dennypage/pfsense,BlackstarGroup/pfsense