mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-11 15:42:29 +02:00
fix(qbittorrent): correct pre-existing typo openpvn→openvpn in function names
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>
This commit is contained in:
committed by
GitHub
parent
3c12b13dde
commit
134348bcfc
@@ -546,7 +546,7 @@ _openvpn_down() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_openpvn_postup() {
|
_openvpn_postup() {
|
||||||
# Add explicit host route for VPN server endpoint to prevent recursive routing.
|
# 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
|
# 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
|
# endpoint. Without it, sockets bound to the VPN interface (e.g. qBittorrent
|
||||||
@@ -584,7 +584,7 @@ _openpvn_postup() {
|
|||||||
_resolvconf "update" || return 1
|
_resolvconf "update" || return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
_openpvn_postdown() {
|
_openvpn_postdown() {
|
||||||
# Remove host route for VPN server (added in postup to prevent recursive routing)
|
# Remove host route for VPN server (added in postup to prevent recursive routing)
|
||||||
local server_ip=""
|
local server_ip=""
|
||||||
if [ -n "${trusted_ip:-}" ]; then
|
if [ -n "${trusted_ip:-}" ]; then
|
||||||
@@ -652,10 +652,10 @@ openvpn() {
|
|||||||
bashio::log.info "OpenVPN on interface ${config["Interface"]} is down."
|
bashio::log.info "OpenVPN on interface ${config["Interface"]} is down."
|
||||||
bashio::exit.ok 'OpenVPN stopped.'
|
bashio::exit.ok 'OpenVPN stopped.'
|
||||||
elif [ "${mode}" = "postup" ]; then
|
elif [ "${mode}" = "postup" ]; then
|
||||||
_openpvn_postup
|
_openvpn_postup
|
||||||
bashio::exit.ok 'OpenVPN routes added.'
|
bashio::exit.ok 'OpenVPN routes added.'
|
||||||
elif [ "${mode}" = "postdown" ]; then
|
elif [ "${mode}" = "postdown" ]; then
|
||||||
_openpvn_postdown
|
_openvpn_postdown
|
||||||
bashio::exit.ok 'OpenVPN routes deleted.'
|
bashio::exit.ok 'OpenVPN routes deleted.'
|
||||||
else
|
else
|
||||||
bashio::log.error "Invalid OpenVPN mode specified. Use 'up', 'down', 'postup', or 'postdown'."
|
bashio::log.error "Invalid OpenVPN mode specified. Use 'up', 'down', 'postup', or 'postdown'."
|
||||||
|
|||||||
Reference in New Issue
Block a user