Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/main.cpp
Show First 20 Lines • Show All 514 Lines • ▼ Show 20 Lines | if (!opts.ipv6_proxy.empty()) { | ||||
if (service.IsValid()) { | if (service.IsValid()) { | ||||
tfm::format(std::cout, "Using IPv6 proxy at %s\n", | tfm::format(std::cout, "Using IPv6 proxy at %s\n", | ||||
service.ToStringIPPort()); | service.ToStringIPPort()); | ||||
SetProxy(NET_IPV6, proxyType(service)); | SetProxy(NET_IPV6, proxyType(service)); | ||||
} | } | ||||
} | } | ||||
bool fDNS = true; | bool fDNS = true; | ||||
tfm::format(std::cout, "Using %s.\n", gArgs.GetChainName()); | tfm::format(std::cout, "Using %s.\n", gArgs.GetChainName()); | ||||
netMagic = Params().NetMagic(); | |||||
if (opts.ns.empty()) { | if (opts.ns.empty()) { | ||||
tfm::format(std::cout, "No nameserver set. Not starting DNS server.\n"); | tfm::format(std::cout, "No nameserver set. Not starting DNS server.\n"); | ||||
fDNS = false; | fDNS = false; | ||||
} | } | ||||
if (fDNS && opts.host.empty()) { | if (fDNS && opts.host.empty()) { | ||||
tfm::format(std::cerr, "No hostname set. Please use -h.\n"); | tfm::format(std::cerr, "No hostname set. Please use -h.\n"); | ||||
return EXIT_FAILURE; | return EXIT_FAILURE; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |