Variable: tramp-local-host-regexp

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

Value

"\\(?:\\`\\(?:0927094056b8\\|127\\.0\\.0\\.1\\|::1\\|ip\\(?:6-lo\\(?:calhost\\|opback\\)\\|v6-lo\\(?:calhost\\|opback\\)\\)\\|localhost[46]?\\)\\'\\)"

Documentation

Regexp of 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-to-string `(: bos (| . ,tramp-local-host-names) eos))
  "Regexp of 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))