Przeglądaj źródła

Update wg5clients.sh

蘭雅sRGB 6 lat temu
rodzic
commit
c2ee0c025c
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      Wireguard/wg5clients.sh

+ 2 - 2
Wireguard/wg5clients.sh

@@ -138,11 +138,11 @@ cat /etc/wireguard/wg_${host}_4.conf   && next
 
 echo "#  wg 查看有效的客户端;删除客户端使用  wg set wg0 peer xxxx_填对应IP的公钥_xxxx remove"
 echo "#  再次显示本文本使用 bash wg5 命令,通过下面2种方式获得其他的配置文件,IP也可以用服务器IP"
-file=$(md5sum /etc/wireguard/wg0.conf)  && file=${file:0:6}.tar
+file=$(md5sum /etc/wireguard/client.conf)  && file=${file:0:6}.tar
 echo "#  请浏览器访问   http://10.0.0.1:8000/$file  下载配置文件,需要先连上WG服务器"
 echo "#  scp [email protected]:/etc/wireguard/wg5clients.tar   wg5clients.tar"
 cp /etc/wireguard/wg5clients.tar  ~/$file
-cd ~  && python -m SimpleHTTPServer 8000 &
+cd ~  && python -m SimpleHTTPServer 8000 
 
 EOF
 cp wg5 ~/wg5