Browse Source

Temporary vpn tls port

Bob Mottram 7 years ago
parent
commit
9122145f1e
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/freedombone-app-vpn

+ 5
- 1
src/freedombone-app-vpn View File

@@ -75,10 +75,14 @@ function install_interactive_vpn {
75 75
     do
76 76
         data=$(tempfile 2>/dev/null)
77 77
         trap "rm -f $data" 0 1 2 5 15
78
+        currtlsport=$(grep 'VPN_TLS_PORT' temp.cfg | awk -F '=' '{print $2}')
79
+        if [ $currtlsport ]; then
80
+            VPN_TLS_PORT=$currtlsport
81
+        fi
78 82
         dialog --backtitle $"Freedombone Configuration" \
79 83
                --title $"VPN Configuration" \
80 84
                --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 \
81
-               $"TLS port:" 1 1 "$(grep 'VPN_TLS_PORT' temp.cfg | awk -F '=' '{print $2}')" 1 12 4 4 \
85
+               $"TLS port:" 1 1 "$VPN_TLS_PORT" 1 12 4 4 \
82 86
                2> $data
83 87
         sel=$?
84 88
         case $sel in