mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-12 02:21:28 +02:00
avoid
This commit is contained in:
@@ -2,10 +2,12 @@
|
|||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# DRAFT : Start wireguard if needed
|
# DRAFT : Start wireguard if needed
|
||||||
########################################################
|
########################################################
|
||||||
|
|
||||||
QBT_CONFIG_FILE="/config/qBittorrent/qBittorrent.conf"
|
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
|
echo "8080 webui" >> /etc/iproute2/rt_tables
|
||||||
if [ -n "$DEFAULT_IPV4_GATEWAY" ]; then
|
if [ -n "$DEFAULT_IPV4_GATEWAY" ]; then
|
||||||
# Default
|
# 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
|
ip route add default via "$DEFAULT_IPV4_GATEWAY" table webui
|
||||||
# Look for local networks first
|
# Look for local networks first
|
||||||
ip rule add fwmark 8080 table main suppress_prefixlength 1
|
ip rule add fwmark 8080 table main suppress_prefixlength 1
|
||||||
|
|||||||
Reference in New Issue
Block a user