Function: socks-find-route

socks-find-route is a byte-compiled function defined in socks.el.gz.

Signature

(socks-find-route HOST SERVICE)

Source Code

;; Defined in /usr/src/emacs/lisp/net/socks.el.gz
(defun socks-find-route (host _service)
  (let ((route socks-server)
	(noproxy socks-noproxy))
    (while noproxy
      (if (eq ?! (aref (car noproxy) 0))
	  (if (string-match (substring (car noproxy) 1) host)
	      (setq noproxy nil))
	(if (string-match (car noproxy) host)
	    (setq route nil
		  noproxy nil)))
      (setq noproxy (cdr noproxy)))
    route))