Temporary vpn tls port

This commit is contained in:
Bob Mottram 2017-09-27 12:40:35 +01:00
parent 3c9ca52c77
commit 9122145f1e
1 changed files with 5 additions and 1 deletions

View File

@ -75,10 +75,14 @@ function install_interactive_vpn {
do do
data=$(tempfile 2>/dev/null) data=$(tempfile 2>/dev/null)
trap "rm -f $data" 0 1 2 5 15 trap "rm -f $data" 0 1 2 5 15
currtlsport=$(grep 'VPN_TLS_PORT' temp.cfg | awk -F '=' '{print $2}')
if [ $currtlsport ]; then
VPN_TLS_PORT=$currtlsport
fi
dialog --backtitle $"Freedombone Configuration" \ dialog --backtitle $"Freedombone Configuration" \
--title $"VPN Configuration" \ --title $"VPN Configuration" \
--form $"\nPlease enter your VPN details. Changing the port to 443 will help defend against censorship but will prevent other web apps from running." 12 65 1 \ --form $"\nPlease enter your VPN details. Changing the port to 443 will help defend against censorship but will prevent other web apps from running." 12 65 1 \
$"TLS port:" 1 1 "$(grep 'VPN_TLS_PORT' temp.cfg | awk -F '=' '{print $2}')" 1 12 4 4 \ $"TLS port:" 1 1 "$VPN_TLS_PORT" 1 12 4 4 \
2> $data 2> $data
sel=$? sel=$?
case $sel in case $sel in