2018-12-12 02:52:51 +00:00
|
|
|
#include <config.hpp>
|
2019-01-10 19:41:51 +00:00
|
|
|
|
|
|
|
#include <constants/defaults.hpp>
|
2019-01-11 01:42:02 +00:00
|
|
|
#include <net/net.hpp>
|
2019-01-10 19:41:51 +00:00
|
|
|
#include <util/fs.hpp>
|
2019-01-11 01:19:36 +00:00
|
|
|
#include <util/ini.hpp>
|
2019-01-10 19:41:51 +00:00
|
|
|
#include <util/logger.hpp>
|
|
|
|
#include <util/mem.hpp>
|
2017-10-03 19:14:46 +00:00
|
|
|
|
2019-02-12 00:33:19 +00:00
|
|
|
#include <fstream>
|
|
|
|
#include <ios>
|
|
|
|
#include <iostream>
|
|
|
|
|
2018-05-22 15:54:19 +00:00
|
|
|
namespace llarp
|
|
|
|
{
|
|
|
|
template < typename Config, typename Section >
|
2019-01-22 14:13:26 +00:00
|
|
|
Section
|
2018-05-22 15:54:19 +00:00
|
|
|
find_section(Config &c, const std::string &name, const Section &fallback)
|
|
|
|
{
|
2019-01-22 14:13:26 +00:00
|
|
|
Section ret;
|
|
|
|
if(c.VisitSection(name.c_str(),
|
|
|
|
[&ret](const ConfigParser::Section_t &s) -> bool {
|
|
|
|
for(const auto &item : s)
|
|
|
|
{
|
2019-04-07 17:55:14 +00:00
|
|
|
ret.emplace_back(string_view_string(item.first),
|
|
|
|
string_view_string(item.second));
|
2019-01-22 14:13:26 +00:00
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}))
|
|
|
|
return ret;
|
|
|
|
else
|
2018-05-22 15:54:19 +00:00
|
|
|
return fallback;
|
2018-01-29 14:27:24 +00:00
|
|
|
}
|
2018-05-22 15:54:19 +00:00
|
|
|
|
|
|
|
bool
|
|
|
|
Config::Load(const char *fname)
|
|
|
|
{
|
2019-01-22 14:13:26 +00:00
|
|
|
ConfigParser parser;
|
|
|
|
if(!parser.LoadFile(fname))
|
2019-02-12 00:33:19 +00:00
|
|
|
{
|
2019-01-22 14:13:26 +00:00
|
|
|
return false;
|
2019-02-12 00:33:19 +00:00
|
|
|
}
|
2019-01-22 14:13:26 +00:00
|
|
|
router = find_section(parser, "router", section_t{});
|
|
|
|
network = find_section(parser, "network", section_t{});
|
|
|
|
connect = find_section(parser, "connect", section_t{});
|
|
|
|
netdb = find_section(parser, "netdb", section_t{});
|
|
|
|
dns = find_section(parser, "dns", section_t{});
|
|
|
|
iwp_links = find_section(parser, "bind", section_t{});
|
|
|
|
services = find_section(parser, "services", section_t{});
|
|
|
|
system = find_section(parser, "system", section_t{});
|
2019-04-07 17:55:14 +00:00
|
|
|
metrics = find_section(parser, "metrics", section_t{});
|
2019-01-22 14:13:26 +00:00
|
|
|
api = find_section(parser, "api", section_t{});
|
|
|
|
lokid = find_section(parser, "lokid", section_t{});
|
|
|
|
bootstrap = find_section(parser, "bootstrap", section_t{});
|
2019-04-11 12:58:23 +00:00
|
|
|
logging = find_section(parser, "logging", section_t{});
|
2019-01-22 14:13:26 +00:00
|
|
|
return true;
|
2019-04-25 23:21:19 +00:00
|
|
|
}
|
2017-10-03 19:14:46 +00:00
|
|
|
|
2019-02-11 14:43:48 +00:00
|
|
|
void
|
|
|
|
Config::visit(const Visitor &functor)
|
|
|
|
{
|
|
|
|
std::unordered_map< std::string, const llarp::Config::section_t & >
|
2019-04-07 17:55:14 +00:00
|
|
|
sections = {{"network", network},
|
|
|
|
{"connect", connect},
|
|
|
|
{"bootstrap", bootstrap},
|
|
|
|
{"system", system},
|
|
|
|
{"metrics", metrics},
|
|
|
|
{"netdb", netdb},
|
|
|
|
{"api", api},
|
2019-02-11 14:43:48 +00:00
|
|
|
{"services", services}};
|
|
|
|
|
|
|
|
auto visitor = [&](const char *name, const auto &item) {
|
|
|
|
functor(name, item.first.c_str(), item.second.c_str());
|
|
|
|
};
|
|
|
|
|
|
|
|
using namespace std::placeholders;
|
|
|
|
|
2019-04-11 13:13:29 +00:00
|
|
|
std::for_each(logging.begin(), logging.end(),
|
|
|
|
std::bind(visitor, "logging", _1));
|
|
|
|
|
2019-02-11 14:43:48 +00:00
|
|
|
std::for_each(lokid.begin(), lokid.end(), std::bind(visitor, "lokid", _1));
|
|
|
|
std::for_each(router.begin(), router.end(),
|
|
|
|
std::bind(visitor, "router", _1));
|
|
|
|
|
|
|
|
std::for_each(dns.begin(), dns.end(), std::bind(visitor, "dns", _1));
|
|
|
|
std::for_each(iwp_links.begin(), iwp_links.end(),
|
|
|
|
std::bind(visitor, "bind", _1));
|
|
|
|
|
|
|
|
std::for_each(sections.begin(), sections.end(), [&](const auto §ion) {
|
|
|
|
std::for_each(section.second.begin(), section.second.end(),
|
|
|
|
std::bind(visitor, section.first.c_str(), _1));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2018-02-01 13:21:00 +00:00
|
|
|
} // namespace llarp
|
2017-10-03 19:14:46 +00:00
|
|
|
|
2019-04-23 21:57:01 +00:00
|
|
|
/// fname should be a relative path (from CWD) or absolute path to the config
|
|
|
|
/// file
|
2018-11-06 14:06:09 +00:00
|
|
|
extern "C" bool
|
2018-10-01 09:57:57 +00:00
|
|
|
llarp_ensure_config(const char *fname, const char *basedir, bool overwrite,
|
|
|
|
bool asRouter)
|
2018-10-01 09:56:14 +00:00
|
|
|
{
|
|
|
|
std::error_code ec;
|
|
|
|
if(fs::exists(fname, ec) && !overwrite)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if(ec)
|
|
|
|
{
|
|
|
|
llarp::LogError(ec);
|
|
|
|
return false;
|
|
|
|
}
|
2018-10-01 09:57:57 +00:00
|
|
|
|
2018-10-01 09:56:14 +00:00
|
|
|
std::string basepath = "";
|
|
|
|
if(basedir)
|
|
|
|
{
|
|
|
|
basepath = basedir;
|
2018-10-02 23:11:44 +00:00
|
|
|
#ifndef _WIN32
|
2018-10-01 09:56:14 +00:00
|
|
|
basepath += "/";
|
2018-10-02 23:11:44 +00:00
|
|
|
#else
|
2018-10-03 10:42:44 +00:00
|
|
|
basepath += "\\";
|
2018-10-02 23:11:44 +00:00
|
|
|
#endif
|
2018-10-01 09:56:14 +00:00
|
|
|
}
|
2018-10-01 09:57:57 +00:00
|
|
|
|
2019-01-16 20:58:22 +00:00
|
|
|
llarp::LogInfo("Attempting to create config file ", fname);
|
|
|
|
|
2019-04-23 21:50:49 +00:00
|
|
|
// abort if config already exists
|
2018-10-01 09:57:57 +00:00
|
|
|
if(!asRouter)
|
2018-10-01 09:56:14 +00:00
|
|
|
{
|
2019-04-23 21:50:49 +00:00
|
|
|
if(fs::exists(fname, ec) && !overwrite)
|
2018-10-01 09:56:14 +00:00
|
|
|
{
|
2019-04-23 21:57:01 +00:00
|
|
|
llarp::LogError(fname, " currently exists, please use -f to overwrite");
|
2018-10-01 09:56:14 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if(ec)
|
|
|
|
{
|
|
|
|
llarp::LogError(ec);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
2018-10-01 09:57:57 +00:00
|
|
|
|
2018-10-01 09:56:14 +00:00
|
|
|
// write fname ini
|
2019-01-30 18:15:40 +00:00
|
|
|
std::ofstream f(fname, std::ios::out | std::ios::binary);
|
2018-10-01 09:56:14 +00:00
|
|
|
if(!f.is_open())
|
|
|
|
{
|
|
|
|
llarp::LogError("failed to open ", fname, " for writing");
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
llarp_generic_ensure_config(f, basepath);
|
2018-10-01 09:57:57 +00:00
|
|
|
if(asRouter)
|
2018-10-01 09:56:14 +00:00
|
|
|
{
|
2018-10-02 23:11:44 +00:00
|
|
|
llarp_ensure_router_config(f, basepath);
|
2018-10-01 09:56:14 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
llarp_ensure_client_config(f, basepath);
|
|
|
|
}
|
|
|
|
llarp::LogInfo("Generated new config ", fname);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
llarp_generic_ensure_config(std::ofstream &f, std::string basepath)
|
|
|
|
{
|
|
|
|
f << "# this configuration was auto generated with 'sane' defaults"
|
2018-10-01 09:57:57 +00:00
|
|
|
<< std::endl;
|
2018-10-01 09:56:14 +00:00
|
|
|
f << "# change these values as desired" << std::endl;
|
|
|
|
f << std::endl << std::endl;
|
2018-10-04 13:55:29 +00:00
|
|
|
f << "[router]" << std::endl;
|
2018-10-01 09:56:14 +00:00
|
|
|
f << "# number of crypto worker threads " << std::endl;
|
|
|
|
f << "threads=4" << std::endl;
|
|
|
|
f << "# path to store signed RC" << std::endl;
|
|
|
|
f << "contact-file=" << basepath << "self.signed" << std::endl;
|
|
|
|
f << "# path to store transport private key" << std::endl;
|
|
|
|
f << "transport-privkey=" << basepath << "transport.private" << std::endl;
|
|
|
|
f << "# path to store identity signing key" << std::endl;
|
|
|
|
f << "ident-privkey=" << basepath << "identity.private" << std::endl;
|
|
|
|
f << "# encryption key for onion routing" << std::endl;
|
|
|
|
f << "encryption-privkey=" << basepath << "encryption.private" << std::endl;
|
|
|
|
f << std::endl;
|
|
|
|
f << "# uncomment following line to set router nickname to 'lokinet'"
|
2018-10-01 09:57:57 +00:00
|
|
|
<< std::endl;
|
2019-04-23 21:50:49 +00:00
|
|
|
f << "#nickname=lokinet" << std::endl;
|
2018-10-01 09:56:14 +00:00
|
|
|
f << std::endl << std::endl;
|
2018-10-01 09:57:57 +00:00
|
|
|
|
2019-04-11 12:58:23 +00:00
|
|
|
// logging
|
|
|
|
f << "[logging]" << std::endl;
|
|
|
|
f << "level=info" << std::endl;
|
|
|
|
f << "# uncomment for logging to file" << std::endl;
|
|
|
|
f << "#type=file" << std::endl;
|
|
|
|
f << "#file=/path/to/logfile" << std::endl;
|
|
|
|
f << "# uncomment for syslog logging" << std::endl;
|
|
|
|
f << "#type=syslog" << std::endl;
|
|
|
|
|
2019-04-07 17:55:14 +00:00
|
|
|
// metrics
|
2019-04-11 12:58:23 +00:00
|
|
|
f << "[metrics]" << std::endl;
|
|
|
|
f << "json-metrics-path=" << basepath << "metrics.json" << std::endl;
|
2019-04-07 17:55:14 +00:00
|
|
|
|
|
|
|
f << std::endl << std::endl;
|
|
|
|
|
2018-10-09 12:06:30 +00:00
|
|
|
f << "# admin api (disabled by default)" << std::endl;
|
|
|
|
f << "[api]" << std::endl;
|
|
|
|
f << "enabled=false" << std::endl;
|
2019-04-23 21:50:49 +00:00
|
|
|
f << "#authkey=insertpubkey1here" << std::endl;
|
|
|
|
f << "#authkey=insertpubkey2here" << std::endl;
|
|
|
|
f << "#authkey=insertpubkey3here" << std::endl;
|
2018-10-09 12:06:30 +00:00
|
|
|
f << "bind=127.0.0.1:1190" << std::endl;
|
|
|
|
f << std::endl << std::endl;
|
|
|
|
|
2019-01-11 01:42:02 +00:00
|
|
|
f << "# system settings for privileges and such" << std::endl;
|
2018-10-01 09:56:14 +00:00
|
|
|
f << "[system]" << std::endl;
|
|
|
|
f << "user=" << DEFAULT_LOKINET_USER << std::endl;
|
|
|
|
f << "group=" << DEFAULT_LOKINET_GROUP << std::endl;
|
2019-01-18 13:24:33 +00:00
|
|
|
f << "pidfile=" << basepath << "lokinet.pid" << std::endl;
|
2018-10-01 09:56:14 +00:00
|
|
|
f << std::endl << std::endl;
|
2018-10-01 09:57:57 +00:00
|
|
|
|
2018-10-01 09:56:14 +00:00
|
|
|
f << "# dns provider configuration section" << std::endl;
|
|
|
|
f << "[dns]" << std::endl;
|
2019-01-08 22:30:21 +00:00
|
|
|
f << "# resolver" << std::endl;
|
2018-10-01 09:56:14 +00:00
|
|
|
f << "upstream=" << DEFAULT_RESOLVER_US << std::endl;
|
2018-11-18 18:02:22 +00:00
|
|
|
|
|
|
|
// Make auto-config smarter
|
|
|
|
// will this break reproducibility rules?
|
2018-11-21 17:46:33 +00:00
|
|
|
// (probably)
|
2018-11-18 18:02:22 +00:00
|
|
|
#ifdef __linux__
|
2018-11-26 22:46:22 +00:00
|
|
|
#ifdef ANDROID
|
|
|
|
f << "bind=127.0.0.1:1153" << std::endl;
|
|
|
|
#else
|
2018-11-18 18:02:22 +00:00
|
|
|
f << "bind=127.3.2.1:53" << std::endl;
|
2018-11-26 22:46:22 +00:00
|
|
|
#endif
|
2018-11-18 18:02:22 +00:00
|
|
|
#else
|
2018-11-13 01:42:18 +00:00
|
|
|
f << "bind=127.0.0.1:53" << std::endl;
|
2018-11-18 18:02:22 +00:00
|
|
|
#endif
|
2018-10-01 09:56:14 +00:00
|
|
|
f << std::endl << std::endl;
|
2018-10-01 09:57:57 +00:00
|
|
|
|
2018-10-01 09:56:14 +00:00
|
|
|
f << "# network database settings block " << std::endl;
|
|
|
|
f << "[netdb]" << std::endl;
|
|
|
|
f << "# directory for network database skiplist storage" << std::endl;
|
|
|
|
f << "dir=" << basepath << "netdb" << std::endl;
|
|
|
|
f << std::endl << std::endl;
|
2018-10-01 09:57:57 +00:00
|
|
|
|
2018-11-28 14:58:38 +00:00
|
|
|
f << "# bootstrap settings" << std::endl;
|
|
|
|
f << "[bootstrap]" << std::endl;
|
2018-12-02 18:07:07 +00:00
|
|
|
f << "# add a bootstrap node's signed identity to the list of nodes we want "
|
|
|
|
"to bootstrap from"
|
|
|
|
<< std::endl;
|
2018-11-28 14:58:38 +00:00
|
|
|
f << "# if we don't have any peers we connect to this router" << std::endl;
|
|
|
|
f << "add-node=" << basepath << "bootstrap.signed" << std::endl;
|
2019-04-23 21:50:49 +00:00
|
|
|
// we only process one of these...
|
2019-04-23 21:57:01 +00:00
|
|
|
// f << "# add another bootstrap node" << std::endl;
|
|
|
|
// f << "#add-node=/path/to/alternative/self.signed" << std::endl;
|
2018-10-01 09:56:14 +00:00
|
|
|
f << std::endl << std::endl;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2018-10-02 23:11:44 +00:00
|
|
|
llarp_ensure_router_config(std::ofstream &f, std::string basepath)
|
2018-10-01 09:56:14 +00:00
|
|
|
{
|
2018-11-21 17:46:33 +00:00
|
|
|
f << "# lokid settings (disabled by default)" << std::endl;
|
|
|
|
f << "[lokid]" << std::endl;
|
|
|
|
f << "enabled=false" << std::endl;
|
|
|
|
f << "jsonrpc=127.0.0.1:22023" << std::endl;
|
2019-01-23 17:31:00 +00:00
|
|
|
f << "#service-node-seed=/path/to/servicenode/seed" << std::endl;
|
2018-11-21 17:46:33 +00:00
|
|
|
f << std::endl;
|
2018-10-04 16:48:26 +00:00
|
|
|
f << "# network settings " << std::endl;
|
|
|
|
f << "[network]" << std::endl;
|
|
|
|
f << "profiles=" << basepath << "profiles.dat" << std::endl;
|
2019-04-23 21:50:49 +00:00
|
|
|
// better to let the routers auto-configure
|
2019-04-24 00:28:16 +00:00
|
|
|
// f << "ifaddr=auto" << std::endl;
|
|
|
|
// f << "ifname=auto" << std::endl;
|
2018-11-12 16:43:40 +00:00
|
|
|
f << "enabled=true" << std::endl;
|
|
|
|
f << "exit=false" << std::endl;
|
2019-04-23 21:50:49 +00:00
|
|
|
f << "#exit-blacklist=tcp:25" << std::endl;
|
|
|
|
f << "#exit-whitelist=tcp:*" << std::endl;
|
|
|
|
f << "#exit-whitelist=udp:*" << std::endl;
|
2018-10-04 16:48:26 +00:00
|
|
|
f << std::endl;
|
2018-10-01 09:56:14 +00:00
|
|
|
f << "# ROUTERS ONLY: publish network interfaces for handling inbound traffic"
|
2018-10-01 09:57:57 +00:00
|
|
|
<< std::endl;
|
2018-10-01 09:56:14 +00:00
|
|
|
f << "[bind]" << std::endl;
|
2018-10-02 23:11:44 +00:00
|
|
|
// get ifname
|
2018-10-01 09:56:14 +00:00
|
|
|
std::string ifname;
|
|
|
|
if(llarp::GetBestNetIF(ifname, AF_INET))
|
|
|
|
f << ifname << "=1090" << std::endl;
|
|
|
|
else
|
|
|
|
f << "# could not autodetect network interface" << std::endl
|
2019-04-23 21:50:49 +00:00
|
|
|
<< "#eth0=1090" << std::endl;
|
2018-10-01 09:57:57 +00:00
|
|
|
|
2018-10-01 09:56:14 +00:00
|
|
|
f << std::endl;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
|
|
|
llarp_ensure_client_config(std::ofstream &f, std::string basepath)
|
|
|
|
{
|
2019-04-23 21:50:49 +00:00
|
|
|
// write snapp-example.ini
|
2018-11-04 13:16:27 +00:00
|
|
|
const std::string snappExample_fpath = basepath + "snapp-example.ini";
|
|
|
|
{
|
2019-04-23 21:50:49 +00:00
|
|
|
std::ofstream example_f(snappExample_fpath,
|
2019-04-23 21:57:01 +00:00
|
|
|
std::ios::binary | std::ios::out);
|
2018-11-04 13:16:27 +00:00
|
|
|
if(f.is_open())
|
|
|
|
{
|
2019-04-23 21:50:49 +00:00
|
|
|
// pick ip
|
|
|
|
std::string ip = llarp::findFreePrivateRange();
|
|
|
|
if(ip == "")
|
|
|
|
{
|
|
|
|
llarp::LogError(
|
2019-04-23 21:57:01 +00:00
|
|
|
"Couldn't easily detect a private range to map lokinet onto");
|
2019-04-23 21:50:49 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
example_f << "# this is an example configuration for a snapp"
|
2019-04-23 21:57:01 +00:00
|
|
|
<< std::endl;
|
2019-04-23 21:50:49 +00:00
|
|
|
example_f << "[example-snapp]" << std::endl;
|
2019-04-23 21:57:01 +00:00
|
|
|
example_f << "# keyfile is the path to the private key of the snapp, "
|
|
|
|
"your .loki is tied to this key, DON'T LOSE IT"
|
|
|
|
<< std::endl;
|
2019-04-23 21:50:49 +00:00
|
|
|
example_f << "keyfile=" << basepath << "example-snap-keyfile.private"
|
2019-04-23 21:57:01 +00:00
|
|
|
<< std::endl;
|
2019-04-23 21:50:49 +00:00
|
|
|
example_f << "# ifaddr is the ip range to allocate to this snapp"
|
2019-04-23 21:57:01 +00:00
|
|
|
<< std::endl;
|
2019-04-23 21:50:49 +00:00
|
|
|
example_f << "ifaddr=" << ip << std::endl;
|
2019-04-23 21:57:01 +00:00
|
|
|
// probably fine to leave this (and not-auto-detect it) I'm not worried
|
|
|
|
// about any collisions
|
2019-04-23 21:50:49 +00:00
|
|
|
example_f << "# ifname is the name to try and give to the network "
|
2019-04-23 21:57:01 +00:00
|
|
|
"interface this snap owns"
|
|
|
|
<< std::endl;
|
2019-04-23 21:50:49 +00:00
|
|
|
example_f << "ifname=snapp-tun0" << std::endl;
|
2018-11-04 13:16:27 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
llarp::LogError("failed to write ", snappExample_fpath);
|
|
|
|
}
|
|
|
|
}
|
2019-04-23 21:50:49 +00:00
|
|
|
// now do up fname
|
2018-11-04 13:16:27 +00:00
|
|
|
f << std::endl << std::endl;
|
|
|
|
f << "# snapps configuration section" << std::endl;
|
|
|
|
f << "[services]";
|
2019-04-23 21:50:49 +00:00
|
|
|
f << "# uncomment next line to enable a snapp" << std::endl;
|
2018-11-04 13:16:27 +00:00
|
|
|
f << "#example-snapp=" << snappExample_fpath << std::endl;
|
|
|
|
f << std::endl << std::endl;
|
2018-11-28 14:58:38 +00:00
|
|
|
|
2018-10-02 23:11:44 +00:00
|
|
|
f << "# network settings " << std::endl;
|
|
|
|
f << "[network]" << std::endl;
|
2018-10-04 16:48:26 +00:00
|
|
|
f << "profiles=" << basepath << "profiles.dat" << std::endl;
|
2018-12-02 18:07:07 +00:00
|
|
|
f << "# uncomment next line to add router with pubkey to list of routers we "
|
|
|
|
"connect directly to"
|
|
|
|
<< std::endl;
|
2018-11-28 14:58:38 +00:00
|
|
|
f << "#strict-connect=pubkey" << std::endl;
|
2018-12-02 18:07:07 +00:00
|
|
|
f << "# uncomment next line to use router with pubkey as an exit node"
|
|
|
|
<< std::endl;
|
2018-11-28 14:58:38 +00:00
|
|
|
f << "#exit-node=pubkey" << std::endl;
|
2018-10-02 23:11:44 +00:00
|
|
|
|
2019-04-23 21:50:49 +00:00
|
|
|
// better to set them to auto then to hard code them now
|
|
|
|
// operating environment may change over time and this will help adapt
|
2019-04-24 00:28:16 +00:00
|
|
|
// f << "ifname=auto" << std::endl;
|
|
|
|
// f << "ifaddr=auto" << std::endl;
|
2019-04-23 21:57:01 +00:00
|
|
|
|
2019-04-23 21:50:49 +00:00
|
|
|
// should this also be auto? or not declared?
|
|
|
|
// probably auto in case they want to set up a hidden service
|
2018-10-03 11:46:24 +00:00
|
|
|
f << "enabled=true" << std::endl;
|
2018-10-01 09:56:14 +00:00
|
|
|
return true;
|
|
|
|
}
|