diff --git a/src/freedombone-app-vpn b/src/freedombone-app-vpn index f10ad362..dda7b38b 100755 --- a/src/freedombone-app-vpn +++ b/src/freedombone-app-vpn @@ -123,7 +123,7 @@ function vpn_change_tls_port { VPN_TLS_PORT=$tlsport write_config_param "VPN_TLS_PORT" "$VPN_TLS_PORT" sed -i "s|accept =.*|accept = $VPN_TLS_PORT|g" /etc/stunnel/stunnel.conf - sed -i "s|accept =.*|accept = $VPN_TLS_PORT|g" /etc/stunnel/stunnel-client.conf + sed -i "s|connect =.*|connect = :$VPN_TLS_PORT|g" /etc/stunnel/stunnel-client.conf for d in /home/*/ ; do USERNAME=$(echo "$d" | awk -F '/' '{print $3}')