| 504 | } |
| 505 | |
| 506 | static std::string MakeAddOnionCmd(const std::string& private_key, const std::string& target, bool enable_pow) |
| 507 | { |
| 508 | // Note that the 'virtual' port is always the default port to avoid decloaking nodes using other ports. |
| 509 | return strprintf("ADD_ONION %s%s Port=%i,%s", |
| 510 | private_key, |
| 511 | enable_pow ? " PoWDefensesEnabled=1" : "", |
| 512 | Params().GetDefaultPort(), |
| 513 | target); |
| 514 | } |
| 515 | |
| 516 | void TorController::add_onion_cb(TorControlConnection& _conn, const TorControlReply& reply, bool pow_was_enabled) |
| 517 | { |
no test coverage detected