Project

General

Profile

« Previous | Next » 

Revision d376ac6a

Added by Marcos M 8 months ago

Gateways with monitoring disabled may use incorrect address family

When return_gateways_status() processes gateways that have monitoring
disabled, the source IP used is always IPv4 regardless of the actual
address family of the gateway address. Fix this by using the newer
function get_interface_addresses() to get both the IPv4 and IPv6
addresses and set 'srcip' depending on the gateway address family.

  • added
  • modified
  • copied
  • renamed
  • deleted