diff options
Diffstat (limited to 'lib/ohai/plugins/linux/network.rb')
-rw-r--r-- | lib/ohai/plugins/linux/network.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/plugins/linux/network.rb b/lib/ohai/plugins/linux/network.rb index b38df361..54523e11 100644 --- a/lib/ohai/plugins/linux/network.rb +++ b/lib/ohai/plugins/linux/network.rb @@ -518,8 +518,8 @@ Ohai.plugin(:Network) do return false if default_route[:via].nil? - dest_ipaddr = IPAddress(route[:destination]) - default_route_via = IPAddress(default_route[:via]) + dest_ipaddr = IPAddr.new(route[:destination]) + default_route_via = IPAddr.new(default_route[:via]) # check if nexthop is the same address family return false if dest_ipaddr.ipv4? != default_route_via.ipv4? |