fixed a few bugs

This commit is contained in:
csoler 2021-12-18 16:45:53 +01:00
parent bdbcadc43c
commit f352235ccd
5 changed files with 18 additions and 27 deletions

View file

@ -38,7 +38,7 @@
using namespace Tor;
AddOnionCommand::AddOnionCommand(HiddenService *service)
: m_service(service)
: m_service(service), mSucceeded([](){}), mFailed([](int){})
{
assert(m_service);
}

View file

@ -487,7 +487,7 @@ void TorControl::getTorInfo()
void TorControl::getTorInfoReply(TorControlCommand *sender)
{
GetConfCommand *command = dynamic_cast<GetConfCommand*>(sender);
if (!command || !isConnected())
if (!command)// || !isConnected())
return;
std::list<ByteArray> listenAddresses = splitQuotedStrings(command->get("net/listeners/socks").front(), ' ');

View file

@ -97,7 +97,7 @@ public:
void setAuthPassword(const ByteArray& password);
/* Connection */
bool isConnected() const { return status() == Authenticated; }
bool isConnected() const { return status() >= Authenticated; }
void connect(const std::string &address, uint16_t port);
void authenticate();