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

Setting vpn tls port from control panel

parent 62bea42a
No related branches found
No related tags found
No related merge requests found
......@@ -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}')
......
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