恥ずかしい勘違いから生まれた、DHCP6の不要かつ部分的な実装
Revisão | 1594fda102e2bf1296757a0fa5e4326fc9ca90d6 (tree) |
---|---|
Hora | 2021-08-11 07:13:23 |
Autor | dyknon <dyknon@user...> |
Commiter | dyknon |
fixit
@@ -14,6 +14,7 @@ use Net::DHCP6::Parameters qw( | ||
14 | 14 | use Socket qw/getaddrinfo AF_INET6 SOCK_DGRAM AI_PASSIVE/; |
15 | 15 | use POSIX qw/EAGAIN EWOULDBLOCK/; |
16 | 16 | use Time::HiRes; |
17 | +use IO::Socket::IP; | |
17 | 18 | use IO::Select; |
18 | 19 | |
19 | 20 | our @ISA = qw/Exporter/; |
@@ -17,6 +17,7 @@ open(my $aih, "-|:utf8", qw/ip -j address show/, IF) or die; | ||
17 | 17 | { |
18 | 18 | local $/; |
19 | 19 | $ai = decode_json <$aih>; |
20 | + $ai = [grep{%$_ != 0} @$ai]; | |
20 | 21 | } |
21 | 22 | close $aih; |
22 | 23 |