Skip to content

Commit 0673ea8

Browse files
author
Chen Bin
committed
fix ffap security issue
1 parent 59df45a commit 0673ea8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lisp/init-essential.el

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,5 +309,15 @@ If OTHER-SOURCE is 2, get keyword from `kill-ring'."
309309
;; @see https://emacs-china.org/t/gnupg-2-4-1-easypg/25264/7
310310
(fset 'epg-wait-for-status 'ignore)
311311

312+
(with-eval-after-load 'ffap
313+
;; @see https://www.reddit.com/r/emacs/comments/1gjlv1z/why_is_emacs_grep_command_pinging_external_servers/
314+
;; better performance and security
315+
(setq ffap-machine-p-known 'reject))
316+
312317
(provide 'init-essential)
318+
319+
;; Local Variables:
320+
;; byte-compile-warnings: (not free-vars)
321+
;; End:
322+
313323
;;; init-essential.el ends here

0 commit comments

Comments
 (0)