diff options
-rwxr-xr-x | lib/Vyatta/Misc.pm | 2 | ||||
-rw-r--r-- | lib/Vyatta/ioctl.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm index 59aff2b..7d47b3c 100755 --- a/lib/Vyatta/Misc.pm +++ b/lib/Vyatta/Misc.pm @@ -40,7 +40,7 @@ use Vyatta::Config; use Vyatta::Interface; use NetAddr::IP; use Socket; -use Socket6; +Socket6->import(qw(inet_pton getaddrinfo)); # # returns a hash of ipaddrs => interface diff --git a/lib/Vyatta/ioctl.pm b/lib/Vyatta/ioctl.pm index 7c745c3..6572231 100644 --- a/lib/Vyatta/ioctl.pm +++ b/lib/Vyatta/ioctl.pm @@ -22,7 +22,7 @@ package Vyatta::ioctl; use strict; use warnings; use Socket; -use Socket6; +Socket6->import(qw(inet_pton getaddrinfo)); { local $^W = 0; |