소스 검색

Temporary vpn tls port

Bob Mottram 7 년 전
부모
커밋
9122145f1e
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5
    1
      src/freedombone-app-vpn

+ 5
- 1
src/freedombone-app-vpn 파일 보기

75
     do
75
     do
76
         data=$(tempfile 2>/dev/null)
76
         data=$(tempfile 2>/dev/null)
77
         trap "rm -f $data" 0 1 2 5 15
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
         dialog --backtitle $"Freedombone Configuration" \
82
         dialog --backtitle $"Freedombone Configuration" \
79
                --title $"VPN Configuration" \
83
                --title $"VPN Configuration" \
80
                --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 \
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
                2> $data
86
                2> $data
83
         sel=$?
87
         sel=$?
84
         case $sel in
88
         case $sel in