Przeglądaj źródła

Setting vpn tls port from control panel

Bob Mottram 7 lat temu
rodzic
commit
f5a8c42645
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/freedombone-app-vpn

+ 1
- 1
src/freedombone-app-vpn Wyświetl plik

@@ -123,7 +123,7 @@ function vpn_change_tls_port {
123 123
                     VPN_TLS_PORT=$tlsport
124 124
                     write_config_param "VPN_TLS_PORT" "$VPN_TLS_PORT"
125 125
                     sed -i "s|accept =.*|accept = $VPN_TLS_PORT|g" /etc/stunnel/stunnel.conf
126
-                    sed -i "s|accept =.*|accept = $VPN_TLS_PORT|g" /etc/stunnel/stunnel-client.conf
126
+                    sed -i "s|connect =.*|connect = :$VPN_TLS_PORT|g" /etc/stunnel/stunnel-client.conf
127 127
 
128 128
                     for d in /home/*/ ; do
129 129
                         USERNAME=$(echo "$d" | awk -F '/' '{print $3}')