diff options
Diffstat (limited to 'net/proxy/proxy_info.h')
-rw-r--r-- | net/proxy/proxy_info.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/net/proxy/proxy_info.h b/net/proxy/proxy_info.h index ec5d05a..2531c6d 100644 --- a/net/proxy/proxy_info.h +++ b/net/proxy/proxy_info.h @@ -50,7 +50,14 @@ class ProxyInfo { return proxy_list_.Get().is_direct(); } - // Returns true if the first valid proxy server is a http proxy. + // Returns true if the first valid proxy server is an https proxy. + bool is_https() const { + if (is_empty()) + return false; + return proxy_server().is_https(); + } + + // Returns true if the first valid proxy server is an http proxy. bool is_http() const { if (is_empty()) return false; |