Explorar el Código

qrencode -o - -t UTF8

# 改用 UTF8参数,gcp 网页ssh能正确显示条码
cat /etc/wireguard/wg_${host}_1.conf | qrencode -o - -t UTF8
蘭雅sRGB hace 6 años
padre
commit
984f0b2a01
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Wireguard/wg5clients.sh

+ 1 - 1
Wireguard/wg5clients.sh

@@ -120,7 +120,7 @@ host=$(hostname -s)
 
 cd  /etc/wireguard/
 tar cvf  wg5clients.tar  client*  wg_*
-cat /etc/wireguard/wg_${host}_1.conf | qrencode -o - -t ansi256
+cat /etc/wireguard/wg_${host}_1.conf | qrencode -o - -t UTF8
 echo "# 手机扫描二维码2号配置,PC使用配置复制下面文本"
 
 cat /etc/wireguard/client.conf       && next