|
|
@ -38,10 +38,10 @@ while true; do
|
|
|
|
if [[ "${VPN_ENABLED}" == "yes" ]]; then
|
|
|
|
if [[ "${VPN_ENABLED}" == "yes" ]]; then
|
|
|
|
|
|
|
|
|
|
|
|
# forcibly set allow anonymous access from localhost to api (used to change incoming port)
|
|
|
|
# forcibly set allow anonymous access from localhost to api (used to change incoming port)
|
|
|
|
sed -i "s~^WebUI\LocalHostAuth=.*~WebUI\LocalHostAuth=false~g" "${qbittorrent_config}"
|
|
|
|
sed -i 's~^WebUI\\LocalHostAuth=.*~WebUI\\LocalHostAuth=false~g' "${qbittorrent_config}"
|
|
|
|
|
|
|
|
|
|
|
|
# forcibly set random incoming port to false
|
|
|
|
# forcibly set random incoming port to false
|
|
|
|
sed -i "s~^General\UseRandomPort=.*~General\UseRandomPort=false~g" "${qbittorrent_config}"
|
|
|
|
sed -i 's~^General\\UseRandomPort=.*~General\\UseRandomPort=false~g' "${qbittorrent_config}"
|
|
|
|
|
|
|
|
|
|
|
|
# run script to check ip is valid for tunnel device (will block until valid)
|
|
|
|
# run script to check ip is valid for tunnel device (will block until valid)
|
|
|
|
source /home/nobody/getvpnip.sh
|
|
|
|
source /home/nobody/getvpnip.sh
|
|
|
|