Add HAProxy PROXY Protocol v2 support (#399)

This commit is contained in:
KingJulien1st
2026-02-22 22:17:32 +01:00
committed by GitHub
parent 2cc5ba2fb9
commit 23d3a24bc4
8 changed files with 202 additions and 35 deletions
+10
View File
@@ -317,6 +317,16 @@ Params::Params(const std::vector<std::vector<std::string>>& args)
ok = true;
}
if (arg[0] == "stratum-proxy-protocol") {
m_stratumProxyProtocol = true;
ok = true;
}
if (arg[0] == "p2p-proxy-protocol") {
m_p2pProxyProtocol = true;
ok = true;
}
if (!ok) {
fprintf(stderr, "Unknown or invalid command line parameter \"%s\"\n\n", arg[0].c_str());
p2pool_usage();