Skip to content

Commit

Permalink
add port to log
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhotio committed Feb 23, 2024
1 parent ada6bda commit 7cf36ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/app/forwarded_port_update_app
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if grep -q 'WebUI\\LocalHostAuth=false' "${CONFIG_DIR}/config/qBittorrent.conf";
if ! curl -fsSL --retry-all-errors --retry-delay 10 --retry 5 --retry-max-time 120 --insecure -X POST -d "json={\"web_ui_upnp\":false,\"upnp\":false,\"random_port\":false,\"listen_port\":${port}}" "${webui_https}://localhost:${WEBUI_PORTS%%/*}/api/v2/app/setPreferences"; then
echo "[ERR] [$(date '+%Y-%m-%d %H:%M:%S')] [QBITTORRENT] Unable to set forwarded port, something is wrong!"
else
echo "[INF] [$(date '+%Y-%m-%d %H:%M:%S')] [QBITTORRENT] Updated forwarded port."
echo "[INF] [$(date '+%Y-%m-%d %H:%M:%S')] [QBITTORRENT] Updated forwarded port to [${port}]."
fi
else
echo "[WRN] [$(date '+%Y-%m-%d %H:%M:%S')] [QBITTORRENT] Unable to set forwarded port, \"LocalHostAuth\" is enabled!"
Expand Down

0 comments on commit 7cf36ae

Please sign in to comment.