Skip to content

Commit

Permalink
Merge 1fa72f3 into 4725f61
Browse files Browse the repository at this point in the history
  • Loading branch information
amkisko committed Feb 18, 2020
2 parents 4725f61 + 1fa72f3 commit 2bea02e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/packetfu/utils.rb
Expand Up @@ -193,7 +193,7 @@ def self.default_int
ip = default_ip

Socket.getifaddrs.each do |ifaddr|
next unless ifaddr.addr.ip?
next unless ifaddr.addr&.ip?

return ifaddr.name if ifaddr.addr.ip_address == ip
end
Expand Down

0 comments on commit 2bea02e

Please sign in to comment.