Variable: tramp-local-host-regexp

tramp-local-host-regexp is a customizable variable defined in tramp.el.gz.

Value

"\\`\\(?:27beb039d694\\|\\(?:127\\.0\\.0\\.1\\|::1\\|ip6-lo\\(?:calhost\\|opback\\)\\|localhost[46]?\\)\\)\\'"

Documentation

Host names which are regarded as local host.

If the local host runs a chrooted environment, set this to nil.

This variable was added, or its default value changed, in Emacs 29.3.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
;;;###tramp-autoload
(defcustom tramp-local-host-regexp
  (tramp-compat-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.3"
  :type '(choice (const :tag "Chrooted environment" nil)
		 (regexp :tag "Host regexp")))