mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Update 93-openvpn.sh
This commit is contained in:
@@ -54,9 +54,10 @@ if bashio::config.true 'openvpn_enabled'; then
|
||||
else
|
||||
# Ensure no redirection by removing the direction tag
|
||||
bashio::log.info "Direct connection without VPN enabled"
|
||||
sed -i '/PortRangeMin/d' $QBT_CONFIG_FILE
|
||||
sed -i '/Interface/d' $QBT_CONFIG_FILE
|
||||
sed -i "$LINE i\Connection\\\Interface=" $QBT_CONFIG_FILE
|
||||
sed -i "$LINE i\Connection\\\InterfaceAddress=" $QBT_CONFIG_FILE
|
||||
sed -i "$LINE i\Connection\\\InterfaceName=" $QBT_CONFIG_FILE
|
||||
cd /config/qBittorrent/
|
||||
sed -i '/PortRangeMin/d' qBittorrent.conf
|
||||
sed -i '/Interface/d' qBittorrent.conf
|
||||
sed -i "$LINE i\Connection\\\Interface=" qBittorrent.conf
|
||||
sed -i "$LINE i\Connection\\\InterfaceAddress=" qBittorrent.conf
|
||||
sed -i "$LINE i\Connection\\\InterfaceName=" qBittorrent.conf
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user