是否可以在web.config中指定自动配置代理?

Ale*_*gas 2 asp.net web-config

我希望服务器web.config配置尽可能地匹配客户端.所有客户端都使用代理自动配置脚本.

有没有办法在web.config中指定此脚本文件?

Mel*_*igy 5

直接在<configuration>:

  <system.net>
    <defaultProxy enabled="true" useDefaultCredentials="true">
      <proxy scriptLocation="--- your script location here ---" bypassonlocal="True" />
    </defaultProxy>
  </system.net>
Run Code Online (Sandbox Code Playgroud)