]> git.proxmox.com Git - pve-common.git/commitdiff
tools: getaddrinfo: code/indentation cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Apr 2021 08:33:51 +0000 (10:33 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Apr 2021 08:33:51 +0000 (10:33 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Tools.pm

index fc4a367214af378451c4bab63035086e9918d5e9..2a91a92f423ebd150a9a088cd153a3a29554fdd2 100644 (file)
@@ -1388,8 +1388,10 @@ sub unpack_sockaddr_in46 {
 
 sub getaddrinfo_all {
     my ($hostname, @opts) = @_;
-    my %hints = ( flags => AI_V4MAPPED | AI_ALL,
-                  @opts );
+    my %hints = (
+       flags => AI_V4MAPPED | AI_ALL,
+       @opts,
+    );
     my ($err, @res) = Socket::getaddrinfo($hostname, '0', \%hints);
     die "failed to get address info for: $hostname: $err\n" if $err;
     return @res;