mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 23:55:56 +02:00
Alternative mode by default
This commit is contained in:
@@ -61,7 +61,7 @@ if bashio::config.true 'openvpn_enabled'; then
|
|||||||
# ALTERNATIVE MODE #
|
# ALTERNATIVE MODE #
|
||||||
#####################
|
#####################
|
||||||
|
|
||||||
if bashio::config.true 'openvpn_alternative_mode'; then
|
#if bashio::config.true 'openvpn_alternative_mode'; then
|
||||||
# Remove previous line and bind tun0
|
# Remove previous line and bind tun0
|
||||||
sed -i '/Interface/d' qBittorrent.conf
|
sed -i '/Interface/d' qBittorrent.conf
|
||||||
# Bind tun0
|
# Bind tun0
|
||||||
@@ -69,7 +69,7 @@ if bashio::config.true 'openvpn_enabled'; then
|
|||||||
sed -i "$LINE i\Connection\\\InterfaceName=tun0" qBittorrent.conf
|
sed -i "$LINE i\Connection\\\InterfaceName=tun0" qBittorrent.conf
|
||||||
# Modify ovpn config
|
# Modify ovpn config
|
||||||
echo "route-nopull" >>/etc/openvpn/config.ovpn
|
echo "route-nopull" >>/etc/openvpn/config.ovpn
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user