mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
386 B
C++
21 lines
386 B
C++
#include <llarp/logger.h>
|
|
#include <llarp/api.hpp>
|
|
#include <llarp/logger.hpp>
|
|
|
|
int
|
|
main(int argc, char* argv[])
|
|
{
|
|
cSetLogLevel(eLogDebug);
|
|
std::string url = llarp::api::DefaultURL;
|
|
if(argc > 1)
|
|
{
|
|
url = argv[1];
|
|
}
|
|
llarp::api::Client cl("hiddenservice");
|
|
if(!cl.Start(url))
|
|
{
|
|
llarp::LogError("failed to start session");
|
|
return 1;
|
|
}
|
|
return cl.Mainloop();
|
|
} |