Added a command line parameter to disable Stratum HTTP

This commit is contained in:
SChernykh
2024-12-17 11:39:49 +01:00
parent 2581b4c2da
commit a4459d6207
6 changed files with 16 additions and 1 deletions

View File

@@ -213,6 +213,11 @@ Params::Params(int argc, char* const argv[])
}
#endif
if (strcmp(argv[i], "--no-stratum-http") == 0) {
m_enableStratumHTTP = false;
ok = true;
}
if (!ok) {
fprintf(stderr, "Unknown command line parameter %s\n\n", argv[i]);
p2pool_usage();