macaddr-steakknife 1.8.4 → 1.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/macaddr/version.rb +1 -1
- data/lib/macaddr.rb +4 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afaccb364887b2c6d698da894708584a7ce28bc6
|
4
|
+
data.tar.gz: e5166ed7ff227a37078a7e76330688d5ba552c27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c890cdf2541f413e94e114d03882991e1f9a2ef8fd705af8670fc7ab7705ec82c77a9ea143c0310fc4061ffbb9f5d575e95e75161cb7be56b62a916b10c199f
|
7
|
+
data.tar.gz: d9588c2d0acf362cc6352e98a8d9d7439f4759740ef622c3f2389e91c0139720fe75fe70384a874cec0a500db4d1a9be80a2cf6e90a80661c2bbce6e1231559e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/macaddr/version.rb
CHANGED
data/lib/macaddr.rb
CHANGED
@@ -34,7 +34,10 @@ module Mac
|
|
34
34
|
# @return [Array<Ifaddr>] Return all interface Ifaddrs
|
35
35
|
def ifaddrs
|
36
36
|
return [] if !Socket.respond_to?(:getifaddrs) || iface_packet_family.nil?
|
37
|
-
Socket.getifaddrs.select
|
37
|
+
Socket.getifaddrs.select do |iface|
|
38
|
+
next unless iface.addr && iface.addr.respond_to(:pfamily)
|
39
|
+
iface.addr.pfamily == iface_packet_family
|
40
|
+
end
|
38
41
|
end
|
39
42
|
|
40
43
|
# @return [Hash<String,[String,nil]>]
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|