| 378 | } |
| 379 | |
| 380 | void I2PControlHandlers::HTTPProxyInfoHandler (std::ostringstream& results) |
| 381 | { |
| 382 | boost::property_tree::ptree pt; |
| 383 | |
| 384 | auto httpProxy = i2p::client::context.GetHttpProxy (); |
| 385 | if (httpProxy) |
| 386 | { |
| 387 | auto& ident = httpProxy->GetLocalDestination ()->GetIdentHash(); |
| 388 | pt.put("enabled", true); |
| 389 | pt.put("address", i2p::client::context.GetAddressBook ().ToAddress(ident)); |
| 390 | } |
| 391 | else |
| 392 | pt.put("enabled", false); |
| 393 | |
| 394 | InsertParam (results, "HTTPProxy", pt); |
| 395 | } |
| 396 | |
| 397 | void I2PControlHandlers::SOCKSInfoHandler (std::ostringstream& results) |
| 398 | { |
nothing calls this directly
no test coverage detected