mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2024-12-25 23:21:46 +03:00
Fix nfsscan
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
This commit is contained in:
parent
6564419625
commit
ee302b1caa
@ -937,7 +937,7 @@ sub resolv_server {
|
|||||||
$packed_ip = (PVE::Tools::unpack_sockaddr_in46($res[0]->{addr}))[2];
|
$packed_ip = (PVE::Tools::unpack_sockaddr_in46($res[0]->{addr}))[2];
|
||||||
};
|
};
|
||||||
if (defined $packed_ip) {
|
if (defined $packed_ip) {
|
||||||
return inet_ntop($family, $packed_ip);
|
return Socket::inet_ntop($family, $packed_ip);
|
||||||
}
|
}
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user