NO_PROXY 格式
¥NO_PROXY
Format
NO_PROXY
环境变量支持多种格式:
¥The NO_PROXY
environment variable supports several formats:
-
*
- 绕过所有主机的代理¥
*
- Bypass proxy for all hosts -
example.com
- 精确主机名匹配¥
example.com
- Exact host name match -
.example.com
- 域名后缀匹配(匹配sub.example.com
)¥
.example.com
- Domain suffix match (matchessub.example.com
) -
*.example.com
- 通配符域名匹配¥
*.example.com
- Wildcard domain match -
192.168.1.100
- 精确 IP 地址匹配¥
192.168.1.100
- Exact IP address match -
192.168.1.1-192.168.1.100
- IP 地址范围¥
192.168.1.1-192.168.1.100
- IP address range -
example.com:8080
- 带有特定端口的主机名¥
example.com:8080
- Hostname with specific port
多个条目应以逗号分隔。
¥Multiple entries should be separated by commas.