|
|
|
@ -8,6 +8,10 @@ if [[ "${qbittorrent_running}" == "true" ]]; then
|
|
|
|
|
|
|
|
|
|
curl -i -X POST -d "json=%7B%22random_port%22%3Afalse%7D" "http://localhost:${WEBUI_PORT}/command/setPreferences" &> /dev/null
|
|
|
|
|
curl -i -X POST -d "json=%7B%22listen_port%22%3A${VPN_INCOMING_PORT}%7D" "http://localhost:${WEBUI_PORT}/command/setPreferences" &> /dev/null
|
|
|
|
|
|
|
|
|
|
# set qbittorrent port to current vpn port (used when checking for changes on next run)
|
|
|
|
|
qbittorrent_port="${VPN_INCOMING_PORT}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
@ -65,6 +69,12 @@ else
|
|
|
|
|
curl -i -X POST -d "json=%7B%22random_port%22%3Afalse%7D" "http://localhost:${WEBUI_PORT}/command/setPreferences" &> /dev/null
|
|
|
|
|
curl -i -X POST -d "json=%7B%22listen_port%22%3A${VPN_INCOMING_PORT}%7D" "http://localhost:${WEBUI_PORT}/command/setPreferences" &> /dev/null
|
|
|
|
|
|
|
|
|
|
# set rtorrent port to current vpn port (used when checking for changes on next run)
|
|
|
|
|
qbittorrent_port="${VPN_INCOMING_PORT}"
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# set qbittorrent ip to current vpn ip (used when checking for changes on next run)
|
|
|
|
|
qbittorrent_ip="${vpn_ip}"
|
|
|
|
|