mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 21:04:05 +02:00
Update 00-openvpn.sh
This commit is contained in:
@@ -34,8 +34,12 @@ if [[ "$(bashio::config "VPN_ENABLED")" == "yes" ]] && [[ "$(bashio::config "VPN
|
|||||||
|
|
||||||
# Check proto
|
# Check proto
|
||||||
if grep -q "proto" "$file"; then
|
if grep -q "proto" "$file"; then
|
||||||
echo "... proto not found in your ovpn, assuming UDP"
|
if [ -f /data/tdp ]; then
|
||||||
touch /data/udp
|
echo "... proto not found in your ovpn, assuming TDP"
|
||||||
|
sed -i "250a VPN_PROTOCOL=\"udp\"" /etc/cont-init.d/02-vpn.sh
|
||||||
|
else
|
||||||
|
echo "... proto not found in your ovpn, assuming UDP"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user