From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 438531FF133 for ; Mon, 11 May 2026 11:36:06 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 0B0A5FDC5; Mon, 11 May 2026 11:36:04 +0200 (CEST) From: Gabriel Goller To: pve-devel@lists.proxmox.com Subject: [PATCH manager] pvebanner: fix URL IPv6 address formatting Date: Mon, 11 May 2026 11:35:52 +0200 Message-ID: <20260511093554.102397-1-g.goller@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1778492047237 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.028 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: UME4AOFZMYNQRZ4JZTTUPQRPHZ62VKAZ X-Message-ID-Hash: UME4AOFZMYNQRZ4JZTTUPQRPHZ62VKAZ X-MailFrom: g.goller@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Wrap IPv6 local IP address in brackets when generating the web UI URL. Otherwise browsers (firefox and chromium tested) can't tell the difference between port and ipv6 address segment. Signed-off-by: Gabriel Goller --- bin/pvebanner | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/pvebanner b/bin/pvebanner index 7e8526101adf..6a214f74c04a 100755 --- a/bin/pvebanner +++ b/bin/pvebanner @@ -12,6 +12,8 @@ my $xline = '-' x 78; my $banner = ''; if ($localip) { + my $urlip = $localip =~ m/:/ ? "[$localip]" : $localip; + $banner .= <<__EOBANNER; $xline @@ -19,7 +21,7 @@ $xline Welcome to the Proxmox Virtual Environment. Please use your web browser to configure this server - connect to: - https://${localip}:8006/ + https://${urlip}:8006/ $xline -- 2.47.3