Setting vpn tls port from control panel
This commit is contained in:
parent
62bea42aca
commit
f5a8c42645
|
@ -123,7 +123,7 @@ function vpn_change_tls_port {
|
||||||
VPN_TLS_PORT=$tlsport
|
VPN_TLS_PORT=$tlsport
|
||||||
write_config_param "VPN_TLS_PORT" "$VPN_TLS_PORT"
|
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.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
|
for d in /home/*/ ; do
|
||||||
USERNAME=$(echo "$d" | awk -F '/' '{print $3}')
|
USERNAME=$(echo "$d" | awk -F '/' '{print $3}')
|
||||||
|
|
Loading…
Reference in New Issue