diff options
author | Zhaofeng Li <hello@zhaofeng.li> | 2021-06-13 20:02:11 -0700 |
---|---|---|
committer | Zhaofeng Li <hello@zhaofeng.li> | 2021-06-13 20:02:19 -0700 |
commit | dd74706ddb24d0370a9ffaed13cdbbdcf858ebc3 (patch) | |
tree | eb5c16e5ebfe00bbcef49f84c5eb9ccca8d62afc | |
parent | 49bc258fd56db6ee0518058129f8fdc7f35a57e8 (diff) | |
download | libproxy-git-dd74706ddb24d0370a9ffaed13cdbbdcf858ebc3.tar.gz |
config_envvar: Add environment variable for pacrunner debugging
-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"))) |