Browse Source

Merge pull request #5 from freicoin/fix-segfault-on-missing-tor

Don't setup TOR proxy unless TOR proxy address is specified on the comma...
pull/1/head
Pieter Wuille 12 years ago
parent
commit
5bf150c5d9
  1. 10
      main.cpp

10
main.cpp

@ -349,10 +349,12 @@ int main(int argc, char **argv) { @@ -349,10 +349,12 @@ int main(int argc, char **argv) {
setbuf(stdout, NULL);
CDnsSeedOpts opts;
opts.ParseCommandLine(argc, argv);
CService service(opts.tor, 9050);
if (service.IsValid()) {
printf("Using Tor proxy at %s\n", service.ToStringIPPort().c_str());
SetProxy(NET_TOR, service);
if (opts.tor) {
CService service(opts.tor, 9050);
if (service.IsValid()) {
printf("Using Tor proxy at %s\n", service.ToStringIPPort().c_str());
SetProxy(NET_TOR, service);
}
}
bool fDNS = true;
if (!opts.ns) {

Loading…
Cancel
Save