mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-28 11:24:04 +02:00
Compare commits
12 Commits
copilot/fi
...
claude/fix
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97c4f8ad8b | ||
|
|
e937f6d555 | ||
|
|
68f990f7df | ||
|
|
91bb34d206 | ||
|
|
d118eccf6f | ||
|
|
d1f9725ec0 | ||
|
|
1f82a63b69 | ||
|
|
f59266ad57 | ||
|
|
3b643c5613 | ||
|
|
a247c0c782 | ||
|
|
cf584b9c07 | ||
|
|
58a042996c |
@@ -1,5 +1,12 @@
|
||||
## 5.2.0-16 (13-05-2026)
|
||||
## 5.2.0-8 (12-05-2026)
|
||||
- Minor bugs fixed
|
||||
## 5.2.0-7 (12-05-2026)
|
||||
- Minor bugs fixed
|
||||
## 5.2.0-6 (12-05-2026)
|
||||
- Minor bugs fixed
|
||||
|
||||
## 5.2.0-3 (2026-05-12)
|
||||
- Fix WireGuard "RTNETLINK answers: File exists" crash loop: clean up stale interface and routing rules before re-establishing the tunnel on S6 service restart
|
||||
|
||||
## 5.2.0-2 (2026-05-10)
|
||||
- Fix startup loop on aarch64: drop s6-notifyoncheck wrapper so s6 supervises qbittorrent-nox directly (LSIO arm64 image has no notification-fd, causing EBADF restart loop)
|
||||
|
||||
@@ -143,4 +143,4 @@ schema:
|
||||
slug: qbittorrent
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "5.2.0-16"
|
||||
version: "5.2.0-8"
|
||||
|
||||
@@ -44,11 +44,6 @@ fi
|
||||
|
||||
bashio::log.info "Starting qBittorrent..."
|
||||
|
||||
if [ -f /etc/s6-overlay/s6-rc.d/svc-qbittorrent/notification-fd ]; then
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${WEBUI_PORT}" \
|
||||
s6-setuidgid abc /app/qbittorrent-nox --webui-port="${WEBUI_PORT}" > "${QB_OUTPUT}"
|
||||
else
|
||||
sleep 10
|
||||
exec s6-setuidgid abc /app/qbittorrent-nox --webui-port="${WEBUI_PORT}" > "${QB_OUTPUT}"
|
||||
fi
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${WEBUI_PORT}" \
|
||||
s6-setuidgid abc /app/qbittorrent-nox --webui-port="${WEBUI_PORT}" > "${QB_OUTPUT}"
|
||||
|
||||
@@ -93,33 +93,6 @@ _check_host() {
|
||||
fi
|
||||
}
|
||||
|
||||
_add_endpoint_route() {
|
||||
local endpoint_ip="$1"
|
||||
local result=0
|
||||
|
||||
_check_host "${endpoint_ip}" || result=$?
|
||||
|
||||
if [ "${result}" -eq 1 ]; then
|
||||
local default_route
|
||||
default_route="$(ip -4 route show default | head -n1)"
|
||||
if [ -z "${default_route}" ]; then
|
||||
bashio::log.warning "No IPv4 default route found to pin VPN endpoint ${endpoint_ip}."
|
||||
return 0
|
||||
fi
|
||||
_cmd "ip -4 route replace ${endpoint_ip}/32 ${default_route}" || return 1
|
||||
elif [ "${result}" -eq 2 ]; then
|
||||
local default_route
|
||||
default_route="$(ip -6 route show default | head -n1)"
|
||||
if [ -z "${default_route}" ]; then
|
||||
bashio::log.warning "No IPv6 default route found to pin VPN endpoint ${endpoint_ip}."
|
||||
return 0
|
||||
fi
|
||||
_cmd "ip -6 route replace ${endpoint_ip}/128 ${default_route}" || return 1
|
||||
else
|
||||
bashio::log.warning "Skipping endpoint route pinning for invalid endpoint IP: ${endpoint_ip}"
|
||||
fi
|
||||
}
|
||||
|
||||
_resolvconf() {
|
||||
local mode=$1
|
||||
local resolv_conf="/etc/resolv.conf"
|
||||
@@ -462,7 +435,6 @@ wireguard() {
|
||||
for endpoint_ip in "${endpoint_ips[@]}"; do
|
||||
bashio::log.info "Resolved WireGuard endpoint hostname ${config["EndpointHost"]} to IP: ${endpoint_ip}"
|
||||
config["EndpointIP"]="${endpoint_ip}"
|
||||
_add_endpoint_route "${config["EndpointIP"]}" || return 1
|
||||
if _wireguard_up; then
|
||||
bashio::log.info "WireGuard interface ${config["Interface"]} is up."
|
||||
bashio::exit.ok 'WireGuard started.'
|
||||
@@ -473,7 +445,6 @@ wireguard() {
|
||||
else
|
||||
bashio::log.debug "WireGuard endpoint ${config["EndpointHost"]} is a valid IP address. Using as is."
|
||||
config["EndpointIP"]="${config["EndpointHost"]}"
|
||||
_add_endpoint_route "${config["EndpointIP"]}" || return 1
|
||||
if _wireguard_up; then
|
||||
bashio::log.info "WireGuard interface ${config["Interface"]} is up."
|
||||
bashio::exit.ok 'WireGuard started.'
|
||||
|
||||
Reference in New Issue
Block a user