Variable: tramp-local-host-regexp

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

Value

"\\`\\(127\\.0\\.0\\.1\\|70f1d35571c2\\|::1\\|localhost6?\\)\\'"

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 27.1.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defcustom tramp-local-host-regexp
  (concat
   "\\`"
   (regexp-opt
    (list "localhost" "localhost6" tramp-system-name "127.0.0.1" "::1") t)
   "\\'")
  "Host names which are regarded as local host.
If the local host runs a chrooted environment, set this to nil."
  :version "27.1"
  :type '(choice (const :tag "Chrooted environment" nil)
		 (regexp :tag "Host regexp")))