From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 3FB2F1FF14C for ; Fri, 15 May 2026 00:37:06 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 443BC5430; Fri, 15 May 2026 00:36:58 +0200 (CEST) From: Bogdan Ionescu To: f.gruenbichler@proxmox.com Subject: [PATCH pve-guest-common] tunnel: propagate remote capabilities Date: Fri, 15 May 2026 00:27:53 +0200 Message-ID: <20260514222753.13187-2-bogdan@ionescu.at> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260514222753.13187-1-bogdan@ionescu.at> References: <1777552058.4o39hpnqt6.astroid@yuna.none> <20260514222753.13187-1-bogdan@ionescu.at> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_PASS -0.1 DMARC pass 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 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [tunnel.pm] Message-ID-Hash: OIDL6C2ZER3SEWXSQAMF6S3AS75PAFSH X-Message-ID-Hash: OIDL6C2ZER3SEWXSQAMF6S3AS75PAFSH X-MailFrom: bogdan@ionescu.at 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 CC: pve-devel@lists.proxmox.com, Bogdan Ionescu X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Bogdan Ionescu --- src/PVE/Tunnel.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PVE/Tunnel.pm b/src/PVE/Tunnel.pm index 791b465..952fd66 100644 --- a/src/PVE/Tunnel.pm +++ b/src/PVE/Tunnel.pm @@ -315,6 +315,8 @@ sub fork_websocket_tunnel { if ($version =~ /^(\d+)$/) { $tunnel->{version} = $1; $tunnel->{age} = $res->{age}; + $tunnel->{caps} = $res->{caps} + if defined($res->{caps}) && ref($res->{caps}) eq 'ARRAY'; } else { $err = "received invalid tunnel version string '$version'\n" if !$err; } -- 2.47.3