MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / UseProxy

Method UseProxy

libi2pd/NTCP2.cpp:2155–2163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2153 }
2154
2155 void NTCP2Server::UseProxy(ProxyType proxytype, const std::string& addr, uint16_t port,
2156 const std::string& user, const std::string& pass)
2157 {
2158 m_ProxyType = proxytype;
2159 m_ProxyAddress = addr;
2160 m_ProxyPort = port;
2161 if (m_ProxyType == eHTTPProxy )
2162 m_ProxyAuthorization = i2p::http::CreateBasicAuthorizationString (user, pass);
2163 }
2164
2165 void NTCP2Server::HandleProxyConnect(const boost::system::error_code& ecode, std::shared_ptr<NTCP2Session> conn, std::shared_ptr<boost::asio::steady_timer> timer)
2166 {

Callers 1

StartMethod · 0.80

Calls 1

Tested by

no test coverage detected