mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
common HTTP basic authorization string
This commit is contained in:
parent
880d1a7ccd
commit
7c0b0a4e3e
4 changed files with 35 additions and 17 deletions
|
@ -1471,8 +1471,8 @@ namespace transport
|
|||
m_ProxyType = proxytype;
|
||||
m_ProxyAddress = addr;
|
||||
m_ProxyPort = port;
|
||||
if ((!user.empty () || !pass.empty ()) && m_ProxyType == eHTTPProxy )
|
||||
m_ProxyAuthorization = "Basic " + i2p::data::ToBase64Standard (user + ":" + pass);
|
||||
if (m_ProxyType == eHTTPProxy )
|
||||
m_ProxyAuthorization = i2p::http::CreateBasicAuthorizationString (user, pass);
|
||||
}
|
||||
|
||||
void NTCP2Server::HandleProxyConnect(const boost::system::error_code& ecode, std::shared_ptr<NTCP2Session> conn, std::shared_ptr<boost::asio::deadline_timer> timer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue