| 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 | { |
no test coverage detected