Commit graph

3 commits

Author SHA1 Message Date
AltMinerNet
1f9bfd006a stratum: handle proxy protocol (#196)
Implemented PROXY v2 protocol (https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt) so that stratum can be run behind an haproxy instance.

iptables/ipset still work if haproxy is run on local machine. if run on remote machine switch to using client_block_ipset() and periodically sync the ipset to the machine running haproxy.
haproxy must be configured with send-proxy-v2, version 1 does not work
2018-01-22 01:18:57 +01:00
Tanguy Pruvot
39d123a071 stratum: reduce client algo & socket struct size
to reduce a bit the memory usage... require a make clean!

+ prevent null/local ips from bans.
2017-12-17 07:25:25 +01:00
root
cc92c825ef stratum code 2015-07-02 20:58:24 +02:00