lib/ohai/plugins/network.rb in ohai-16.2.3 vs lib/ohai/plugins/network.rb in ohai-16.3.0

- old
+ new

@@ -52,10 +52,10 @@ # sort ip addresses by scope, by prefixlen and then by ip address # 128 - prefixlen: longest prefixes first ipaddresses.sort_by do |v| [ ( scope_prio.index(v[:scope]) || 999999 ), 128 - v[:ipaddress].prefix.to_i, - ( family == "inet" ? v[:ipaddress].to_u32 : v[:ipaddress].to_u128 ), + v[:ipaddress].to_i, ] end end # finds ip address / interface for interface with default route based on