Setting vpn tls port from control panel

This commit is contained in:
Bob Mottram 2017-10-25 13:37:53 +01:00
parent 62bea42aca
commit f5a8c42645
1 changed files with 1 additions and 1 deletions

View File

@ -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}')