Skip to content

Commit

Permalink
fix ffap security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Bin committed Nov 5, 2024
1 parent 59df45a commit 0673ea8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lisp/init-essential.el
Original file line number Diff line number Diff line change
Expand Up @@ -309,5 +309,15 @@ If OTHER-SOURCE is 2, get keyword from `kill-ring'."
;; @see https://emacs-china.org/t/gnupg-2-4-1-easypg/25264/7
(fset 'epg-wait-for-status 'ignore)

(with-eval-after-load 'ffap
;; @see https://www.reddit.com/r/emacs/comments/1gjlv1z/why_is_emacs_grep_command_pinging_external_servers/
;; better performance and security
(setq ffap-machine-p-known 'reject))

(provide 'init-essential)

;; Local Variables:
;; byte-compile-warnings: (not free-vars)
;; End:

;;; init-essential.el ends here

0 comments on commit 0673ea8

Please sign in to comment.