From 08cd656258658d64529c47e00cd5ebc39f9a8b98 Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Mon, 25 Apr 2022 14:12:18 +0800 Subject: [PATCH] Update mac.sh --- mac.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mac.sh b/mac.sh index 2b58e22..917e11c 100644 --- a/mac.sh +++ b/mac.sh @@ -278,7 +278,7 @@ install(){ wgcf generate >/dev/null 2>&1 # 如有 Teams,改为 Teams 账户信息 - [[ $CONFIRM = [Yy] ]] && echo "$TEAMS" | sudo tee /etc/wireguard/info.log >/dev/null 2>&1 + [[ $CONFIRM = [Yy] ]] && echo "$TEAMS" | sudo tee /etc/wireguard/info.log >/dev/null 2>&1 && sudo sed -i '' "s#PrivateKey.*#PrivateKey = $PRIVATEKEY#g;s#Address.*32#Address = ${ADDRESS4}/32#g;s#Address.*128#Address = ${ADDRESS6}/128#g;s#PublicKey.*#PublicKey = $PUBLICKEY#g" wgcf-profile.conf # 修改配置文件 wgcf-profile.conf 的内容, 更换 Endpoint 和 DNS