summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/proxy/proxy_server.h')
-rw-r--r--net/proxy/proxy_server.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/proxy/proxy_server.h b/net/proxy/proxy_server.h
index 0cf792c..a3d5ca8 100644
--- a/net/proxy/proxy_server.h
+++ b/net/proxy/proxy_server.h
@@ -48,8 +48,10 @@ class ProxyServer {
return scheme_ == SCHEME_SOCKS4 || scheme_ == SCHEME_SOCKS5;
}
- // Gets the host portion of the proxy server.
- const std::string& host() const;
+ // Gets the host portion of the proxy server. If the host portion is an
+ // IPv6 literal address, the return value does not include the square
+ // brackets ([]) used to separate it from the port portion.
+ std::string HostNoBrackets() const;
// Gets the port portion of the proxy server.
int port() const;