This commit is contained in:
Alexandre
2024-01-21 12:07:50 +01:00
parent 0b7d218472
commit 6c78e8e502

View File

@@ -2,10 +2,12 @@
# shellcheck shell=bash
set -e
exit 0
########################################################
# DRAFT : Start wireguard if needed
########################################################
QBT_CONFIG_FILE="/config/qBittorrent/qBittorrent.conf"
#################
@@ -101,7 +103,7 @@ if bashio::config.true 'wireguard_enabled'; then
echo "8080 webui" >> /etc/iproute2/rt_tables
if [ -n "$DEFAULT_IPV4_GATEWAY" ]; then
# Default
ip rule add fwmark 8080 table webui
ip rule add fwmark 8080 table webui
ip route add default via "$DEFAULT_IPV4_GATEWAY" table webui
# Look for local networks first
ip rule add fwmark 8080 table main suppress_prefixlength 1