Project

General

Profile

« Previous | Next » 

Revision 889cbaef

Added by Phil Davis over 12 years ago

Display gateways with matching IP protocol in Gateways list

Some gateways do not have traditional addresses hard-coded into them - e.g. for OpenVPN dynamic gateways are created in software on-the-fly (they are not actually entries in the config). So traditional tests like is_ipaddrv4 are not useful to determine if the gateway is IPv4 or IPv6.
return_gateways_array() fills in an "ipprotocol" entry for each returned gateway ("inet" or "inet6"), as well as the "gateway" address field. This can be used to determine if the gateway is for IPv4 or IPv6.

  • added
  • modified
  • copied
  • renamed
  • deleted