You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{ .var_type=DATUM_CONF_INT, .category="stratum", .name="trust_proxy", .description="Enable support for the PROXY protocol, trusting up to the specified number of levels deep of proxies (-1 to disable entirely)",
{ .var_type=DATUM_CONF_INT, .category="stratum", .name="vardiff_target_shares_min",.description="Adjust work difficulty to target this many shares per minute",
DLOG_DEBUG("New proxy IP detected: %s on TID: %d, CID: %d", src_ip, my->thread_id, my->client_data[cidx].cid);
284
+
strcpy(my->client_data[cidx].rem_host, src_ip);
285
+
}
286
+
else {
287
+
DLOG_DEBUG("PROXY line present but no valid IP found, keeping original source IP: %s on TID: %d, CID: %d", my->client_data[cidx].rem_host, my->thread_id, my->client_data[cidx].cid);
288
+
}
289
+
}
290
+
start_line=end_line+1;
291
+
end_line=strchr(start_line, '\n');
292
+
continue;
293
+
} else {
294
+
DLOG_DEBUG("Received non-PROXY line from client %d/%d", my->thread_id, my->client_data[cidx].cid);
0 commit comments