From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Artem Smushkov Newsgroups: gmane.emacs.bugs Subject: bug#74219: 29.4; TRAMP uses the same ad-hoc proxy for every docker container on remote hosts Date: Mon, 11 Nov 2024 12:51:53 +0200 Message-ID: References: <87msiaev7g.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-z4YkY5Ogo8lyO8J7dDbF" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1755"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74219@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 11 11:54:38 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tAS45-0000MX-Tw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Nov 2024 11:54:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAS3f-00022X-L0; Mon, 11 Nov 2024 05:54:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tAS3a-0001zC-Dh for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 05:54:07 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAS3W-0000Cx-VX for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 05:54:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=jOyC8lDy5YgFgPhatpxlDsixguDunRBXha4aUn4xJks=; b=cIuszIbVsrSM+DsDchA4Lsxbv/zKUT197hhSpwawRjrZLyDNF5NdLktwk8veymAWXVIn2LWvRP494q+xKZmRkkoKj/t9OhsdTkAT39Hw0WVAkZS2mBaxy/ghtto1IkCQlQIUVKkHd7zWDZjYj+LDm5AwciILpEMBR764d71w/vDPLIBD9rIBD1QMrLZXVmTMid+bYGJcY1aVXT8SwMmL4SyJ253VasqxXEdQkhaEn92Dwg4k/bZQZeAkwU3miznDf2um/IJ6R1DDuUsq2suoL/9t//f5AHz06CY6DZnE9It1FBLJ6xe1zYKZR3DsXMhLWhZfvRbetOWd19B00UPjKQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tAS3W-0001ci-IK for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 05:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Artem Smushkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Nov 2024 10:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74219 X-GNU-PR-Package: emacs Original-Received: via spool by 74219-submit@debbugs.gnu.org id=B74219.17313223926160 (code B ref 74219); Mon, 11 Nov 2024 10:54:02 +0000 Original-Received: (at 74219) by debbugs.gnu.org; 11 Nov 2024 10:53:12 +0000 Original-Received: from localhost ([127.0.0.1]:58411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAS2h-0001bI-LI for submit@debbugs.gnu.org; Mon, 11 Nov 2024 05:53:12 -0500 Original-Received: from mail-ej1-f51.google.com ([209.85.218.51]:42127) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAS2d-0001aw-Qw for 74219@debbugs.gnu.org; Mon, 11 Nov 2024 05:53:09 -0500 Original-Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a9acafdb745so869878866b.0 for <74219@debbugs.gnu.org>; Mon, 11 Nov 2024 02:53:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731322322; x=1731927122; darn=debbugs.gnu.org; h=mime-version:references:in-reply-to:message-id:cc:to:subject:from :date:from:to:cc:subject:date:message-id:reply-to; bh=jOyC8lDy5YgFgPhatpxlDsixguDunRBXha4aUn4xJks=; b=ByS8eqEGw+p5kyEZ4CUDLQOZdX5muj6Nk2lcxmVq/5sLwB5WT1rVRR0S0FgyeomplT +Rk3i/s+SVg4rBZp/ymB03qjdVRgsdsdDnqVuwXAo6+29K5CxE0r94lTEElVqWoqs4+t GcTMxxg7kOzYaI3na4M+YFiPhFPKIunj2DXJZ6mafHyx+q296mU8+B8A6RGJzQQWpfsQ B7B7Mq2LO3stEtkzKcelS3IVoeGQSxsfTvExUG/eIQSXCYZyoE6N5b2Mwy3kCky3cBsS wF4mgc7XHJwpMArWNyPM8WQI+9uec2Fulmr8WtlonKJuzgC2p9BlC9VsDN3GNE4+2sa6 ZXjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731322322; x=1731927122; h=mime-version:references:in-reply-to:message-id:cc:to:subject:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jOyC8lDy5YgFgPhatpxlDsixguDunRBXha4aUn4xJks=; b=TObfkVWaF+phhlkH+acd81dRUnOK2HjlY7UnfGrwb8Bw/rP9HzouDB9VxXMjLp4kcm 7QpsLfKZr5ohQEsVZ/tEs8Z0qhmwMLcoIw84WpKwFJkaycp8FnvKuF0SUUAWS6FzBYGn iF9Twfy/7rQFPo2hL3IXV/+nfyAX8ojSNBC2IgiJXY1Bv5Frwlm087OAJe+d+4p0uyTp y8WGsysud45fkp7UX7COgk8dlxpJAvaOr15XvM8hTyvYSUACsY5yLvIMXogFYJZ/NcZ3 CIVCdaXABDN58YCfF0l5LbtXIJiyvCIJG/qo14WlzvAhxBNhY7m66W25PXTXKOP0BsCz 7Tzg== X-Gm-Message-State: AOJu0YyWsNUMqHW/7E/dyyzYFMtsWcDqysHPWl3xa1arF8LP8BvEaPe5 BQBthUaepSuuHUqzdJtSISWrNw4hBklvELyAzzTo3a6uxedec1R+ X-Google-Smtp-Source: AGHT+IHn/q3GIbW1aAk0l9N8HfZl1YAKX5ZPYqTQDMoz7J5WwcD3sexGlaPfad6T2yxsMMknlgWpYg== X-Received: by 2002:a17:907:c09:b0:a9a:6c41:50a8 with SMTP id a640c23a62f3a-a9eec9c36fbmr1217102566b.17.1731322321694; Mon, 11 Nov 2024 02:52:01 -0800 (PST) Original-Received: from [192.168.1.107] ([178.92.153.224]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9ee0a194dasm576098366b.3.2024.11.11.02.52.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 02:52:01 -0800 (PST) In-Reply-To: <87fro0d9t6.fsf@gmx.de> X-Mailer: geary/46.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:295222 Archived-At: --=-z4YkY5Ogo8lyO8J7dDbF Content-Type: text/plain; charset=us-ascii; format=flowed Hi Michael, Thank you a lot! I will test it today or tomorrow. On Sat, Nov 9 2024 at 10:40:37 AM +01:00:00, Michael Albinus wrote: > Michael Albinus > writes: > > Hi Artem, > >> That's not possible with Tramp. Not with the current design. The >> proxy >> definitions are kept internally, and they apply in reverse order of >> their appearance in the remote file names. > > I've checked the implementation, and it looks like adding this feature > is not as expensive as I thought. So I have implemented it. Pushed to > both Emacs and Tramp git repo, master branch. > > The Tramp manual has a new subsection "5.4.1 Using different proxies > for > the same destination" which explains this. In short, you must set > tramp-show-ad-hoc-proxies to t. > > Do you have a chance to test it? > > Best regards, Michael. --=-z4YkY5Ogo8lyO8J7dDbF Content-Type: text/html; charset=us-ascii
Hi Michael,

Thank you a lot! I will test it today or tomorrow.

On Sat, Nov 9 2024 at 10:40:37 AM +01:00:00, Michael Albinus <michael.albinus@gmx.de> wrote:
Michael Albinus <michael.albinus@gmx.de> writes: Hi Artem,
That's not possible with Tramp. Not with the current design. The proxy definitions are kept internally, and they apply in reverse order of their appearance in the remote file names.
I've checked the implementation, and it looks like adding this feature is not as expensive as I thought. So I have implemented it. Pushed to both Emacs and Tramp git repo, master branch. The Tramp manual has a new subsection "5.4.1 Using different proxies for the same destination" which explains this. In short, you must set tramp-show-ad-hoc-proxies to t. Do you have a chance to test it? Best regards, Michael.
--=-z4YkY5Ogo8lyO8J7dDbF--