mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-24 08:16:04 +02:00
Launch mullvad mod script
Co-author : @Blogshot https://github.com/alexbelgium/hassio-addons/issues/494
This commit is contained in:
@@ -150,11 +150,7 @@ echo ""
|
|||||||
# Correct mullvad
|
# Correct mullvad
|
||||||
if [ "$(bashio::config "OPENVPN_PROVIDER")" == "mullvad" ]; then
|
if [ "$(bashio::config "OPENVPN_PROVIDER")" == "mullvad" ]; then
|
||||||
bashio::log.info "Removing IPv6 from mullvad"
|
bashio::log.info "Removing IPv6 from mullvad"
|
||||||
# shellcheck disable=SC2044
|
sed -i '$i/opt/modify-mullvad.sh' /etc/openvpn/start.sh
|
||||||
for folder in $(find / -type d -name "mullvad"); do
|
|
||||||
echo "pull-filter ignore \"route-ipv6\"" | tee -a "$folder/"*.ovpn > /dev/null
|
|
||||||
echo "pull-filter ignore \"ifconfig-ipv6\"" | tee -a "$folder/"*.ovpn > /dev/null
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.info "Starting app"
|
bashio::log.info "Starting app"
|
||||||
|
|||||||
Reference in New Issue
Block a user