]> git.proxmox.com Git - pve-xtermjs.git/commitdiff
followup: add comment and remove extra empty newline
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Mar 2019 06:26:14 +0000 (07:26 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Mar 2019 06:26:14 +0000 (07:26 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/CLI/termproxy.pm

index 915bbb0cf9c7c2ae1fdbeb46bfe6fd3d3d08fb06..089d9b7091ec4a767a47d788546195888cdb8d54 100644 (file)
@@ -14,10 +14,11 @@ use base qw(PVE::CLIHandler);
 
 use constant MAX_QUEUE_LEN => 16*1024;
 
-
 sub verify_ticket {
     my ($ticket, $user, $path, $perm) = @_;
 
+    # get all loopback addresses even if no IPv4 or IPv6 address is setup on
+    # the host, IO::Socket::IP sets AI_ADDRCONFIG (man getaddrinfo) per default
     local @LWP::Protocol::http::EXTRA_SOCK_OPTS = (
        GetAddrInfoFlags => 0,
     );