unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Use regex in ~/.emacs.d/init.el to match no_proxy.
@ 2021-04-06  8:22 Hongyi Zhao
  2021-04-06 11:32 ` Leo Butler
  0 siblings, 1 reply; 18+ messages in thread
From: Hongyi Zhao @ 2021-04-06  8:22 UTC (permalink / raw)
  To: help-gnu-emacs

On Ubuntu 20.04, I set the following proxy settings in ~/.emacs.d/init.el,

;;; begin
(setq url-proxy-services '(
            ("no_proxy" .
"^\\(.*\\.cn\\|localhost\\|10\\..*\\|127\\..*\\|172\\.16\\..*\\|172\\.17\\..*\\|192\\.168\\..*\\)")
            ; "http://127.0.0.1:8080" doesn't work
            ("http" . "127.0.0.1:8080")
            ("https" . "127.0.0.1:8080")
                          ))
;;; end

As you can see, the "no_proxy" string is rather cumbersome, and I want
to express the following, but I still don't know what to do:

"*.cn,localhost,10.0.0.0/8,127.0.0.0/8,172.16.0.0/12,192.168.0.0/16"

Any hints will be highly appreciated.

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-04-12  7:46 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-06  8:22 Use regex in ~/.emacs.d/init.el to match no_proxy Hongyi Zhao
2021-04-06 11:32 ` Leo Butler
2021-04-06 16:26   ` Hongyi Zhao
2021-04-06 16:56     ` Gregory Heytings
2021-04-07  1:26       ` Hongyi Zhao
2021-04-07  7:19         ` tomas
2021-04-08  1:17           ` Hongyi Zhao
2021-04-08  6:24             ` Joost Kremers
2021-04-10 13:49               ` Hongyi Zhao
2021-04-10 14:05                 ` Joost Kremers
2021-04-11  0:04                   ` Hongyi Zhao
2021-04-11 11:12                     ` Joost Kremers
2021-04-11 12:33                       ` Tim Landscheidt
2021-04-11 13:17                         ` Hongyi Zhao
2021-04-11 13:47                           ` tomas
2021-04-11 21:47                         ` [External] : " Drew Adams
2021-04-12  7:46                           ` tomas
2021-04-08  7:00         ` Robert Thorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).