소스 검색

Update wg5clients.sh

蘭雅sRGB 6 년 전
부모
커밋
377ba9183a
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      Wireguard/wg5clients.sh

+ 7 - 1
Wireguard/wg5clients.sh

@@ -149,7 +149,13 @@ PersistentKeepalive = 25
 
 EOF
 
-
+# 安装二维码插件
+apt -y install qrencode
+cat /etc/wireguard/client.conf | qrencode -o client.png -t UTF8
+cat /etc/wireguard/client_2.conf | qrencode -o client_2.png -t UTF8
+cat /etc/wireguard/client_3.conf | qrencode -o client_3.png -t UTF8
+cat /etc/wireguard/client_4.conf | qrencode -o client_4.png -t UTF8
+cat /etc/wireguard/client_5.conf | qrencode -o client_5.png -t UTF8
 
 # 重启wg服务器
 wg-quick down wg0