From 4dee802705c4af32bcfdc92c4018d6b42034bcfb Mon Sep 17 00:00:00 2001 From: upcboy Date: Wed, 8 Jan 2020 23:49:22 -0600 Subject: [PATCH] Update qbittorrent.sh Fixed hardcoded webui port --- run/nobody/qbittorrent.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run/nobody/qbittorrent.sh b/run/nobody/qbittorrent.sh index fd3c08f..b61ae5e 100644 --- a/run/nobody/qbittorrent.sh +++ b/run/nobody/qbittorrent.sh @@ -56,8 +56,8 @@ fi # option 'Bypass authentication for clients on localhost' if [[ "${VPN_PROV}" == "pia" && -n "${VPN_INCOMING_PORT}" ]]; then - curl -i -X POST -d "json={\"random_port\": false}" "http://localhost:2100/api/v2/app/setPreferences" &> /dev/null - curl -i -X POST -d "json={\"listen_port\": ${VPN_INCOMING_PORT}}" "http://localhost:2100/api/v2/app/setPreferences" &> /dev/null + curl -i -X POST -d "json={\"random_port\": false}" "http://localhost:${WEBUI_PORT}/api/v2/app/setPreferences" &> /dev/null + curl -i -X POST -d "json={\"listen_port\": ${VPN_INCOMING_PORT}}" "http://localhost:${WEBUI_PORT}/api/v2/app/setPreferences" &> /dev/null # set qbittorrent port to current vpn port (used when checking for changes on next run)s qbittorrent_port="${VPN_INCOMING_PORT}"