Browse Source

Adding warning about username + password for proxy

web2098 2 years ago
parent
commit
5ac6e66a42
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/impl/websocket.cpp

+ 2 - 0
src/impl/websocket.cpp

@@ -51,6 +51,8 @@ void WebSocket::open(const string &url) {
 	if (config.proxyServer) {		
 		if( config.proxyServer->type == ProxyServer::Type::Socks5)
 			throw std::invalid_argument("Proxy server support for WebSocket is not implemented for Socks5");
+		if (config.proxyServer->username || config.proxyServer->password)
+			PLOG_WARNING << "HTTP authentication support for proxy is not implemented";
 	}
 
 	// Modified regex from RFC 3986, see https://www.rfc-editor.org/rfc/rfc3986.html#appendix-B