Added --no-dns command line parameter

This commit is contained in:
SChernykh
2022-09-04 18:10:14 +02:00
parent c49e8d4770
commit e4dd46b498
8 changed files with 38 additions and 11 deletions
+6
View File
@@ -140,6 +140,12 @@ Params::Params(int argc, char* argv[])
ok = true;
}
if (strcmp(argv[i], "--no-dns") == 0) {
m_dns = false;
disable_resolve_host = true;
ok = true;
}
if (!ok) {
fprintf(stderr, "Unknown command line parameter %s\n\n", argv[i]);
p2pool_usage();