ftp.el 591 B

12345678910111213
  1. (defvar ange-ftp-hosts-no-pasv '("localhost")
  2. "*List of hosts that do not need PASV (e.g. hosts within your firewall).
  3. Used by `ange-ftp-set-passive'.") ; rephrased, added "*" // era
  4. (defun ange-ftp-set-passive ()
  5. "Function to send a PASV command to hosts not named in the variable
  6. `ange-ft-hosts-no-pasv'. Intended to be called from the hook variable
  7. `ange-ftp-process-startup-hook'." ; rephrased significantly // era
  8. (if (not (member host ange-ftp-hosts-no-pasv))
  9. (ange-ftp-raw-send-cmd proc "passive")))
  10. (add-hook 'ange-ftp-process-startup-hook 'ange-ftp-set-passive)