]> granicus.if.org Git - curl/commitdiff
docs: clarify NO_PROXY further
authorDaniel Stenberg <daniel@haxx.se>
Tue, 30 May 2017 20:43:34 +0000 (22:43 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 30 May 2017 20:43:34 +0000 (22:43 +0200)
Fixes #1208

docs/MANUAL
docs/libcurl/opts/CURLOPT_NOPROXY.3

index 330f99aeaf15e9f214503ed67e30dae56d4eeb87..0e3db0ffb6487dbace363d99c2437fa102337998 100644 (file)
@@ -866,8 +866,11 @@ ENVIRONMENT VARIABLES
 
   If the host name matches one of these strings, or the host is within the
   domain of one of these strings, transactions with that node will not be
-  proxied.
-
+  proxied. When a domain is used, it needs to start with a period. A user can
+  specify that both www.example.com and foo.example.com should not uses a
+  proxy by setting NO_PROXY to ".example.com". By including the full name you
+  can exclude specific host names, so to make www.example.com not use a proxy
+  but still have foo.example.com do it, set NO_PROXY to "www.example.com"
 
   The usage of the -x/--proxy flag overrides the environment variables.
 
index 1048b55a37c5e2d84cd252aa1cbedf33cce4bbb2..a969dc5c217ec442a6fb9bb533132eb764852933 100644 (file)
@@ -5,7 +5,7 @@
 .\" *                            | (__| |_| |  _ <| |___
 .\" *                             \___|\___/|_| \_\_____|
 .\" *
-.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+.\" * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
 .\" *
 .\" * This software is licensed as described in the file COPYING, which
 .\" * you should have received as part of this distribution. The terms
@@ -37,6 +37,10 @@ hostname itself. For example, example.com would match example.com,
 example.com:80, and www.example.com, but not www.notanexample.com or
 example.com.othertld.
 
+If the name in the noproxy list has a leading period, it is a domain match
+against the provided host name. This way ".example.com" will switch off proxy
+use for both "www.example.com" as well as for "foo.example.com".
+
 The application does not have to keep the string around after setting this
 option.
 .SH DEFAULT