Skip to content

Commit

Permalink
DNS Seeds activated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tranz5 committed May 22, 2014
1 parent fca0554 commit 5966a4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ std::string HelpMessage()
" -irc " + _("Find peers using internet relay chat (default: 1)") + "\n" +
" -listen " + _("Accept connections from outside (default: 1 if no -proxy or -connect)") + "\n" +
" -bind=<addr> " + _("Bind to given address. Use [host]:port notation for IPv6") + "\n" +
" -dnsseed " + _("Find peers using DNS lookup (default: 0)") + "\n" +
" -dnsseed " + _("Find peers using DNS lookup (default: 1)") + "\n" +
" -nosynccheckpoints " + _("Disable sync checkpoints (default: 0)") + "\n" +
" -banscore=<n> " + _("Threshold for disconnecting misbehaving peers (default: 100)") + "\n" +
" -bantime=<n> " + _("Number of seconds to keep misbehaving peers from reconnecting (default: 86400)") + "\n" +
Expand Down
10 changes: 2 additions & 8 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ void MapPort()
// The first name is used as information source for addrman.
// The second name should resolve to a list of seed addresses.
static const char *strDNSSeed[][2] = {
{"", ""},
{"btcrypt", "cap.nodes.btcrypt.net"},
};

void ThreadDNSAddressSeed(void* parg)
Expand Down Expand Up @@ -1855,18 +1855,12 @@ void StartNode(void* parg)
// Start threads
//

/*

if (!GetBoolArg("-dnsseed", true))
printf("DNS seeding disabled\n");
else
if (!NewThread(ThreadDNSAddressSeed, NULL))
printf("Error: NewThread(ThreadDNSAddressSeed) failed\n");
*/

if (!GetBoolArg("-dnsseed", false))
printf("DNS seeding disabled\n");
if (GetBoolArg("-dnsseed", false))
printf("DNS seeding NYI\n");

// Map ports with UPnP
if (fUseUPnP)
Expand Down

0 comments on commit 5966a4d

Please sign in to comment.