diff options
Diffstat (limited to 'libproxy/modules/config_envvar.cpp')
-rw-r--r-- | libproxy/modules/config_envvar.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libproxy/modules/config_envvar.cpp b/libproxy/modules/config_envvar.cpp index 2c4217e..544819b 100644 --- a/libproxy/modules/config_envvar.cpp +++ b/libproxy/modules/config_envvar.cpp @@ -28,6 +28,12 @@ public: const char *proxy = NULL; vector<url> response; + // If _PX_DEBUG_PACURL is set, use it as the PAC URL. + if (proxy = getenv("_PX_DEBUG_PACURL")) { + response.push_back(url(string("pac+") + proxy)); + return response; + } + // If the URL is an ftp url, try to read the ftp proxy if (dst.get_scheme() == "ftp") { if (!(proxy = getenv("ftp_proxy"))) |