These patches add a new CLI option: --no-client-reconnect
. The changes are adapted from Kalroth's cgminer fork to be compatible with BFGMiner, CGMiner, and SGMiner. This solves a few reported security issues.
Patches can be applied to the source in a number of ways...
# In a git clone:
git checkout bfgminer-3.10.0 && git checkout -b no-client-reconnect && git apply path/to/bfgminer.diff
# In a source archive:
patch -p1 -d path/to/bfgminer/source -i path/to/bfgminer.diff
# In a git clone:
git checkout v3.7.2 && git checkout -b no-client-reconnect && git apply path/to/cgminer.diff
# In a source archive:
patch -p1 -d path/to/cgminer/source -i path/to/cgminer.diff
# In a git clone:
git checkout 4.1.153 && git checkout -b no-client-reconnect && git apply path/to/sgminer.diff
# In a source archive:
patch -p1 -d path/to/sgminer/source -i path/to/sgminer.diff
If you're using pick (which you should, if you frequently switch between miners) use the following (substituting everything after --
with the options you want to configure the miner with):
# Reinstall and apply the patch to bfgminer
pick install --reinstall -p https://gist.githubusercontent.com/gevans/9846423/raw/bfgminer.diff bfgminer 3.10.0 -- --enable-opencl --enable-scrypt
# Reinstall and apply the patch to cgminer
pick install --reinstall -p https://gist.githubusercontent.com/gevans/9846423/raw/cgminer.diff cgminer 3.7.2 -- --enable-opencl --enable-scrypt
# Reinstall and apply the patch to sgminer
pick install --reinstall -p https://gist.githubusercontent.com/gevans/9846423/raw/sgminer.diff sgminer 4.1.153 -- --enable-opencl --enable-scrypt
Every project you mention are hosted on GH, have you already opened a pull request for each one?