proxychains templating fix
This commit is contained in:
parent
b5f235eea7
commit
f3090564cf
|
@ -77,9 +77,9 @@ others above, `CONFIG_DISABLE` prevents overwriting templated files.
|
||||||
determines the order in which they are templated into the configuration file.
|
determines the order in which they are templated into the configuration file.
|
||||||
The format is a space separated string like "http 127.0.0.1 3129"
|
The format is a space separated string like "http 127.0.0.1 3129"
|
||||||
* `PROXYCHAIN_TYPE`
|
* `PROXYCHAIN_TYPE`
|
||||||
Default `strict-chain`. Can be `strict-chain` or `dynamic-chain` sensibly
|
Default `strict_chain`. Can be `strict_chain` or `dynamic_chain` sensibly
|
||||||
within this image. In `strict-chain` mode, all proxies must be up. In
|
within this image. In `strict_chain` mode, all proxies must be up. In
|
||||||
`dynamic-chain` mode proxies are used in order, but skipped if down.
|
`dynamic_chain` mode proxies are used in order, but skipped if down.
|
||||||
Disable configuration and bind a configuration file to /etc/proxychains.conf
|
Disable configuration and bind a configuration file to /etc/proxychains.conf
|
||||||
if you need more flexibility.
|
if you need more flexibility.
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ if [ "$PROXYCHAIN" = "yes" ] && [ "$CONFIG_DISABLE" != "yes" ]; then
|
||||||
if [ ! -z "$PROXYCHAIN_TYPE" ]; then
|
if [ ! -z "$PROXYCHAIN_TYPE" ]; then
|
||||||
echo "$PROXYCHAIN_TYPE" >> /etc/proxychains.conf
|
echo "$PROXYCHAIN_TYPE" >> /etc/proxychains.conf
|
||||||
else
|
else
|
||||||
echo "strict-chain" >> /etc/proxychains.conf
|
echo "strict_chain" >> /etc/proxychains.conf
|
||||||
fi
|
fi
|
||||||
echo "[ProxyList]" >> /etc/proxychains.conf
|
echo "[ProxyList]" >> /etc/proxychains.conf
|
||||||
env | grep 'PROXYCHAIN_PROXY' | sort | while read proxyline; do
|
env | grep 'PROXYCHAIN_PROXY' | sort | while read proxyline; do
|
||||||
|
|
Loading…
Reference in New Issue