diff --git a/qbittorrent/docker-compose.yml b/qbittorrent/docker-compose.yml index a94b541b..900ffe9e 100644 --- a/qbittorrent/docker-compose.yml +++ b/qbittorrent/docker-compose.yml @@ -8,7 +8,7 @@ services: PROXY_AUTH_ADD: "true" server: - image: ghcr.io/hotio/qbittorrent:release-5.1.2@sha256:4c731e88dd419a20f0e158cef9672e902a7e2c71acea48b8989567f00b5fb095 + image: ghcr.io/hotio/qbittorrent:release-5.1.4@sha256:b547db036748d449c5cbd31635dc3b695ccc70424775c44ea91df18bd1da1ea4 environment: - PUID=1000 - PGID=1000 diff --git a/qbittorrent/hooks/post-start b/qbittorrent/hooks/post-start index 3f468cf0..7c9bd9b0 100755 --- a/qbittorrent/hooks/post-start +++ b/qbittorrent/hooks/post-start @@ -37,12 +37,21 @@ fi echo "Waiting 5 seconds for qBittorrent.conf file to be fully written..." sleep 5 +ensure_preferences_section() { + if ! grep --quiet '^\[Preferences\]$' "${QBITTORRENT_CONF_FILE}"; then + echo "[Preferences] section does not exist in qBittorrent.conf. Creating it." + printf '\n[Preferences]\n' >> "${QBITTORRENT_CONF_FILE}" + fi +} + if "${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" stop server; then echo "qBittorrent stopped successfully." else echo "Failed to run stop command because we were sent here from the post-start hook. This is expected behavior. Continuing" fi +ensure_preferences_section + # As of v4.6.1, qBittorrent no longer supports a default password and instead prints a temporary password to the logs, which is not ideal for users. # Users are meant to start qBittorrent, copy the temporary password from the container logs, log in with the temporary password, and then set a new password from the UI. # This script will set the default password to the legacy 'adminadmin' password if the password is not already set. If a user has already set a password, this script will not overwrite it. @@ -80,6 +89,14 @@ else sed -i '/^\[Preferences\]/a WebUI\\AuthSubnetWhitelistEnabled=true' "${QBITTORRENT_CONF_FILE}" fi +# Ensure WebUI\HostHeaderValidation is set correctly +echo "Setting WebUI\HostHeaderValidation=false in qBittorrent.conf" +if grep -q '^WebUI\\HostHeaderValidation=' "${QBITTORRENT_CONF_FILE}"; then + sed -i 's/^WebUI\\HostHeaderValidation=.*/WebUI\\HostHeaderValidation=false/' "${QBITTORRENT_CONF_FILE}" +else + sed -i '/^\[Preferences\]/a WebUI\\HostHeaderValidation=false' "${QBITTORRENT_CONF_FILE}" +fi + # Create the UMBREL_QBITTORRENT_CONFIG_FLAG file to indicate that we've configured qBittorrent touch "${UMBREL_QBITTORRENT_CONFIG_FLAG}" diff --git a/qbittorrent/umbrel-app.yml b/qbittorrent/umbrel-app.yml index 4857b182..48094a55 100644 --- a/qbittorrent/umbrel-app.yml +++ b/qbittorrent/umbrel-app.yml @@ -2,7 +2,7 @@ manifestVersion: 1.1 id: qbittorrent category: networking name: qBittorrent -version: "5.1.2-auth-proxy-patch" +version: "5.1.4" tagline: Free and reliable P2P Bittorrent client description: >- qBittorrent is an open-source software alternative to µTorrent. It's designed to meet the needs of most users while using as little CPU and memory as possible. @@ -26,19 +26,13 @@ description: >- ⚠️ qBittorrent downloads torrents over the Clearnet, not Tor. releaseNotes: >- - This update includes several new features, bug fixes and improvements: - - Added fallback to update mechanism - - Fixed incorrectly backported changes in WebUI - - Improved security for WebAPI, RSS, and Search modules - - Enhanced handling of external programs and local files - - Fixed appearance issues and improved UI elements - - Improved ratio handling and compilation compatibility - - Enhanced IPv6 support and fixed memory leaks - - Improved path autofill and preview functionality - - - Security updates: - - Enable Proxy Auth + This update includes bug fixes and improvements: + - Fixed crashes related to torrent processing and specific Linux setups + - Fixed empty folders being left behind when deleting or moving torrents + - Fixed the search plugin updater + - Fixed an HTTP header issue affecting reverse proxy setups + - Fixed screen reader accessibility in the torrent list + - Improved tab key focus behavior in the UI Full release notes for qBittorrent are available at https://www.qbittorrent.org/news