mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
avoid
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user