From 134348bcfcc946cc7ff714ca2a617c9cfb255d6d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 13 May 2026 07:33:47 +0000 Subject: [PATCH] =?UTF-8?q?fix(qbittorrent):=20correct=20pre-existing=20ty?= =?UTF-8?q?po=20openpvn=E2=86=92openvpn=20in=20function=20names?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/becbb21c-f7e7-4937-925d-ac4ae0cf24b0 Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com> --- qbittorrent/rootfs/usr/local/sbin/vpn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qbittorrent/rootfs/usr/local/sbin/vpn b/qbittorrent/rootfs/usr/local/sbin/vpn index fa5a7396e2..d7e8502054 100755 --- a/qbittorrent/rootfs/usr/local/sbin/vpn +++ b/qbittorrent/rootfs/usr/local/sbin/vpn @@ -546,7 +546,7 @@ _openvpn_down() { fi } -_openpvn_postup() { +_openvpn_postup() { # Add explicit host route for VPN server endpoint to prevent recursive routing. # With --route-noexec, OpenVPN skips adding its own host route for the remote # endpoint. Without it, sockets bound to the VPN interface (e.g. qBittorrent @@ -584,7 +584,7 @@ _openpvn_postup() { _resolvconf "update" || return 1 } -_openpvn_postdown() { +_openvpn_postdown() { # Remove host route for VPN server (added in postup to prevent recursive routing) local server_ip="" if [ -n "${trusted_ip:-}" ]; then @@ -652,10 +652,10 @@ openvpn() { bashio::log.info "OpenVPN on interface ${config["Interface"]} is down." bashio::exit.ok 'OpenVPN stopped.' elif [ "${mode}" = "postup" ]; then - _openpvn_postup + _openvpn_postup bashio::exit.ok 'OpenVPN routes added.' elif [ "${mode}" = "postdown" ]; then - _openpvn_postdown + _openvpn_postdown bashio::exit.ok 'OpenVPN routes deleted.' else bashio::log.error "Invalid OpenVPN mode specified. Use 'up', 'down', 'postup', or 'postdown'."