From 54f519cf6959395e56fca613d5edf916773c13a4 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sun, 3 Sep 2023 19:35:03 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E9=98=B2=E6=AD=A2=E5=B0=86=E5=A4=9A?= =?UTF-8?q?=E4=BB=BD=20ra=20=E8=AE=BE=E7=BD=AE=E4=B8=BA=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trans.sh b/trans.sh index aa452a1..2604bfc 100644 --- a/trans.sh +++ b/trans.sh @@ -229,7 +229,8 @@ is_virt() { get_ra_to() { if [ -z "$_ra" ]; then apk add ndisc6 - _ra="$(rdisc6 eth0)" + # 有时会重复收取,所以设置收一份后退出 + _ra="$(rdisc6 -1 eth0)" apk del ndisc6 fi eval "$1='$_ra'"