|
|
|
@ -44,11 +44,8 @@ while true; do
|
|
|
|
|
# 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}"
|
|
|
|
|
|
|
|
|
|
# run script to check iptables chain policy is in place (will block until configured)
|
|
|
|
|
source /home/nobody/checkiptables.sh
|
|
|
|
|
|
|
|
|
|
# run script to check ip is valid for tunnel device (will block until valid)
|
|
|
|
|
source /home/nobody/getvpnip.sh
|
|
|
|
|
# run script to get all required info
|
|
|
|
|
source /home/nobody/preruncheck.sh
|
|
|
|
|
|
|
|
|
|
# if vpn_ip is not blank then run, otherwise log warning
|
|
|
|
|
if [[ ! -z "${vpn_ip}" ]]; then
|
|
|
|
@ -91,14 +88,8 @@ while true; do
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# run scripts to identify external ip address
|
|
|
|
|
source /home/nobody/getvpnextip.sh
|
|
|
|
|
|
|
|
|
|
if [[ "${VPN_PROV}" == "pia" ]]; then
|
|
|
|
|
|
|
|
|
|
# run scripts to identify vpn port
|
|
|
|
|
source /home/nobody/getvpnport.sh
|
|
|
|
|
|
|
|
|
|
# if vpn port is not an integer then dont change port
|
|
|
|
|
if [[ ! "${VPN_INCOMING_PORT}" =~ ^-?[0-9]+$ ]]; then
|
|
|
|
|
|
|
|
|
|