Variable: tramp-local-host-regexp

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

Value

"\\`\\(?:7e742eeb7467\\|\\(?:127\\.0\\.0\\.1\\|::1\\|ip\\(?:6-lo\\(?:calhost\\|opback\\)\\|v6-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 30.1.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
;;;###tramp-autoload
(defcustom tramp-local-host-regexp
  (rx bos
      (| (literal tramp-system-name)
	 (| "localhost" "127.0.0.1" "::1"
	    ;; Fedora.
	    "localhost4" "localhost6"
	    ;; Ubuntu.
	    "ip6-localhost" "ip6-loopback"
	    ;; OpenSUSE.
	    "ipv6-localhost" "ipv6-loopback"))
      eos)
  "Host names which are regarded as local host.
If the local host runs a chrooted environment, set this to nil."
  :version "30.1"
  :type '(choice (const :tag "Chrooted environment" nil)
		 (regexp :tag "Host regexp"))
  :link '(tramp-info-link :tag "Tramp manual" tramp-local-host-regexp))