From 5aba199d75414f51ec1c3ce61d769cf3d8912daf Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Thu, 30 Nov 2023 14:48:54 +0100 Subject: [PATCH] * lisp/net/tramp.el (tramp-local-host-regexp): Extend. --- lisp/net/tramp.el | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index e19b8c78f8c..9ca0e3c34d3 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -552,14 +552,17 @@ host runs a restricted shell, it shall be added to this list, too." ;;;###tramp-autoload (defcustom tramp-local-host-regexp - (rx - bos - (| (literal tramp-system-name) - (| "localhost" "localhost4" "localhost6" "127.0.0.1" "::1")) - eos) + (rx bos + (| (literal tramp-system-name) + (| "localhost" "127.0.0.1" "::1" + ;; Fedora. + "localhost4" "localhost6" + ;; Ubuntu. + "ip6-localhost" "ip6-loopback")) + eos) "Host names which are regarded as local host. If the local host runs a chrooted environment, set this to nil." - :version "29.1" + :version "30.1" :type '(choice (const :tag "Chrooted environment" nil) (regexp :tag "Host regexp"))) -- 2.39.2