[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Different routes to same host with proxies?

From: Michael Albinus
Subject: Re: Different routes to same host with proxies?
Date: Tue, 08 Aug 2006 14:00:08 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/20.7 (hpux)

"Wagemans, Peter" <address@hidden> writes:

> The route to a given host may depend on where you are attached to the
> network (e.g., with a laptop). With the old multi-hop methods you
> simply tell tramp how to reach the destination server. I wonder how to
> set up proxies to realise different routes to the same host, since
> from the documentation it looks as if the route is derived from the
> destination only.

That's right. But you can apply the proxy settings depending where you
are. Something like this:

(if (zerop (call-process "ping" nil nil nil "host.home" "-n" "1"))
    (add-to-list 'tramp-default-proxies-alist home-settings)
  (add-to-list 'tramp-default-proxies-alist company-settings))

> Regards,
> Peter Wagemans

Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]