Skip to content
Snippets Groups Projects
Commit 9122145f authored by Bob Mottram's avatar Bob Mottram
Browse files

Temporary vpn tls port

parent 3c9ca52c
No related branches found
No related tags found
No related merge requests found
......@@ -75,10 +75,14 @@ function install_interactive_vpn {
do
data=$(tempfile 2>/dev/null)
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" \
--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 \
$"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
sel=$?
case $sel in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment