mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-09 09:41:36 +02:00
Compare commits
16 Commits
5c0876dac0
...
copilot/fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07f5f82e5b | ||
|
|
96b21edf48 | ||
|
|
134348bcfc | ||
|
|
3c12b13dde | ||
|
|
53109170ca | ||
|
|
9b9157092c | ||
|
|
12e141eacf | ||
|
|
9a0c7cea5f | ||
|
|
15d14ca9b0 | ||
|
|
098f04781b | ||
|
|
575ff2264f | ||
|
|
9e6ecedbc1 | ||
|
|
f5328b6d66 | ||
|
|
862097d6bd | ||
|
|
e5048aa378 | ||
|
|
8bdb3897da |
@@ -1,3 +1,5 @@
|
||||
## 0.139.3 (11-05-2026)
|
||||
- Minor bugs fixed
|
||||
## 0.138.0 (24-04-2026)
|
||||
- Minor bugs fixed
|
||||
## 0.137.0 (13-04-2026)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
name: "Manyfold"
|
||||
slug: manyfold
|
||||
description: "Manyfold 3D model manager as a Home Assistant add-on, using the upstream image with configurable library/index paths."
|
||||
version: "0.138.0"
|
||||
version: "0.139.3"
|
||||
url: "https://github.com/alexbelgium/hassio-addons/tree/master/manyfold"
|
||||
image: ghcr.io/alexbelgium/manyfold-{arch}
|
||||
arch:
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
## 5.2.0-19 (13-05-2026)
|
||||
- OpenVPN: simplify recursive routing fix — use a single blackhole route for the VPN server IP in table 1000 (no AWK, no ipcalc, no physical device detection required)
|
||||
|
||||
- Minor bugs fixed
|
||||
|
||||
## 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)
|
||||
|
||||
## 5.2.0-1 (2026-05-10)
|
||||
- Fix qbittorrent-nox path (/usr/bin → /app) after LSIO image update
|
||||
|
||||
@@ -143,4 +143,4 @@ schema:
|
||||
slug: qbittorrent
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "5.2.0-1"
|
||||
version: "5.2.0-19"
|
||||
|
||||
@@ -37,13 +37,18 @@ fi
|
||||
# --- Launch qBittorrent ---
|
||||
|
||||
# Determine log output based on silent mode
|
||||
QB_OUTPUT="/dev/stdout"
|
||||
QB_OUTPUT="/proc/1/fd/1"
|
||||
if bashio::config.true 'silent'; then
|
||||
QB_OUTPUT="/dev/null"
|
||||
fi
|
||||
|
||||
bashio::log.info "Starting qBittorrent..."
|
||||
|
||||
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}"
|
||||
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
|
||||
|
||||
@@ -535,9 +535,32 @@ _openvpn_down() {
|
||||
pkill -f "openvpn --config ${config["ConfigFile"]}" || true
|
||||
# Safety-net cleanup in case the --down callback was never invoked
|
||||
_routing_del || true
|
||||
# Safety-net: remove blackhole route for VPN server if postdown was never invoked
|
||||
if [ -f "${OPENVPN_STATE_DIR}/server_ip" ]; then
|
||||
local saved_ip
|
||||
saved_ip=$(cat "${OPENVPN_STATE_DIR}/server_ip" 2>/dev/null || true)
|
||||
if [ -n "${saved_ip}" ]; then
|
||||
ip -4 route del blackhole "${saved_ip}/32" table "${config["Table"]}" 2>/dev/null || true
|
||||
fi
|
||||
rm -f "${OPENVPN_STATE_DIR}/server_ip"
|
||||
fi
|
||||
}
|
||||
|
||||
_openpvn_postup() {
|
||||
_openvpn_postup() {
|
||||
# Prevent recursive routing: add a blackhole route for the VPN server IP in
|
||||
# table 1000. qBittorrent is bound to tun0, so its traffic is policy-routed
|
||||
# into table 1000 (rule: from <tun_ip> -> table 1000). Without this, packets
|
||||
# destined for the VPN server go through tun0, OpenVPN detects the loop and
|
||||
# drops them. The blackhole makes qBittorrent's traffic to the server IP fail
|
||||
# immediately (EHOSTUNREACH) instead of looping. OpenVPN itself is not bound
|
||||
# to tun0, so its traffic uses the main table and reaches the server normally.
|
||||
if [ -n "${trusted_ip:-}" ]; then
|
||||
bashio::log.info "Adding blackhole route for VPN server ${trusted_ip} in table ${config["Table"]} to prevent recursive routing."
|
||||
ip -4 route add blackhole "${trusted_ip}/32" table "${config["Table"]}" 2>/dev/null \
|
||||
&& echo "${trusted_ip}" > "${OPENVPN_STATE_DIR}/server_ip" \
|
||||
|| bashio::log.warning "Could not add blackhole route for VPN server ${trusted_ip}."
|
||||
fi
|
||||
|
||||
# Add routing rules for VPN interface and DNS servers
|
||||
_routing_add || return 1
|
||||
# Add firewall rules for VPN interface (only when UPnP port mapping is enabled)
|
||||
@@ -548,7 +571,19 @@ _openpvn_postup() {
|
||||
_resolvconf "update" || return 1
|
||||
}
|
||||
|
||||
_openpvn_postdown() {
|
||||
_openvpn_postdown() {
|
||||
# Remove blackhole route for VPN server (added in postup to prevent recursive routing)
|
||||
local server_ip=""
|
||||
if [ -n "${trusted_ip:-}" ]; then
|
||||
server_ip="${trusted_ip}"
|
||||
elif [ -f "${OPENVPN_STATE_DIR}/server_ip" ]; then
|
||||
server_ip=$(cat "${OPENVPN_STATE_DIR}/server_ip" 2>/dev/null || true)
|
||||
fi
|
||||
if [ -n "${server_ip}" ]; then
|
||||
ip -4 route del blackhole "${server_ip}/32" table "${config["Table"]}" 2>/dev/null || true
|
||||
rm -f "${OPENVPN_STATE_DIR}/server_ip"
|
||||
fi
|
||||
|
||||
# Update resolv.conf to remove VPN DNS servers
|
||||
_resolvconf "reset" || true
|
||||
# Remove routing rules for VPN interface and DNS servers
|
||||
@@ -604,10 +639,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'."
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
## ⚠ Open Issue : [🐛 Cloudcommander New Directory (opened 2026-03-19)](https://github.com/alexbelgium/hassio-addons/issues/2594) by [@pgitsov](https://github.com/pgitsov)
|
||||
## ⚠ Open Issue : [🐛 [Qbittorent] qbittorrent-nox (opened 2026-05-09)](https://github.com/alexbelgium/hassio-addons/issues/2690) by [@BrainDeLook](https://github.com/BrainDeLook)
|
||||
# Hass.io Add-ons: Tor with bridges
|
||||
|
||||
[![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium)
|
||||
|
||||
Reference in New Issue
Block a user