mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-07-25 21:14:06 +00:00
remote_viewer_config: brackets around ipv6 http address
This commit is contained in:
parent
a8a4cd6445
commit
2516752605
@ -6,6 +6,7 @@ use Encode;
|
|||||||
use Crypt::OpenSSL::Random;
|
use Crypt::OpenSSL::Random;
|
||||||
use Crypt::OpenSSL::RSA;
|
use Crypt::OpenSSL::RSA;
|
||||||
use Net::SSLeay;
|
use Net::SSLeay;
|
||||||
|
use Net::IP;
|
||||||
use MIME::Base64;
|
use MIME::Base64;
|
||||||
use Digest::SHA;
|
use Digest::SHA;
|
||||||
use Digest::HMAC_SHA1;
|
use Digest::HMAC_SHA1;
|
||||||
@ -317,6 +318,7 @@ sub remote_viewer_config {
|
|||||||
my $cacert = PVE::Tools::file_get_contents("/etc/pve/pve-root-ca.pem", 8192);
|
my $cacert = PVE::Tools::file_get_contents("/etc/pve/pve-root-ca.pem", 8192);
|
||||||
$cacert =~ s/\n/\\n/g;
|
$cacert =~ s/\n/\\n/g;
|
||||||
|
|
||||||
|
$proxy = "[$proxy]" if Net::IP::ip_is_ipv6($proxy);
|
||||||
my $config = {
|
my $config = {
|
||||||
'secure-attention' => "Ctrl+Alt+Ins",
|
'secure-attention' => "Ctrl+Alt+Ins",
|
||||||
'toggle-fullscreen' => "Shift+F11",
|
'toggle-fullscreen' => "Shift+F11",
|
||||||
|
Loading…
Reference in New Issue
Block a user