浏览代码

Setting vpn tls port from control panel

Bob Mottram 7 年前
父节点
当前提交
f5a8c42645
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/freedombone-app-vpn

+ 1
- 1
src/freedombone-app-vpn 查看文件

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