[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 4f855d6: Use 0.0.0.1 as test host in Tramp
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] master 4f855d6: Use 0.0.0.1 as test host in Tramp |
Date: |
Wed, 22 Jul 2015 05:54:58 +0000 |
branch: master
commit 4f855d6fc9f675e2ad775e59ad30ea910b93d29c
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
Use 0.0.0.1 as test host in Tramp
* lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options):
Use 0.0.0.1 as test host.
---
lisp/net/tramp-sh.el | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index dbf4679..fbb5d8c 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -4614,19 +4614,15 @@ Gateway hops are already opened."
(setq tramp-ssh-controlmaster-options "-o ControlMaster=auto")))
(unless (zerop (length tramp-ssh-controlmaster-options))
(with-temp-buffer
- ;; When we use a non-existing host name, we could run
- ;; into DNS timeouts. So we use "localhost" with an
- ;; improper port, expecting nobody runs sshd on the
- ;; telnet port.
+ ;; We use a non-existing IP address, in order to avoid
+ ;; useless connections, and DNS timeouts.
(tramp-call-process
- vec "ssh" nil t nil
- "-p" "23" "-o" "ControlPath=%C" "localhost")
+ vec "ssh" nil t nil "-o" "ControlPath=%C" "0.0.0.1")
(goto-char (point-min))
(setq tramp-ssh-controlmaster-options
- (if (search-forward-regexp "unknown.+key" nil t)
- (concat tramp-ssh-controlmaster-options
- " -o ControlPath='address@hidden:%%p'")
- (concat tramp-ssh-controlmaster-options
+ (concat tramp-ssh-controlmaster-options
+ (if (search-forward-regexp "unknown.+key" nil t)
+ " -o ControlPath='address@hidden:%%p'"
" -o ControlPath='tramp.%%C'"))))
(with-temp-buffer
(tramp-call-process vec "ssh" nil t nil "-o" "ControlPersist")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 4f855d6: Use 0.0.0.1 as test host in Tramp,
Michael Albinus <=