core: 判断 IPv6 动静态时,先考虑实际测试结果,再考虑 RA,从而处理 RA 乱配的情况

fixes #231
This commit is contained in:
bin456789
2025-02-15 00:02:08 +08:00
parent 275e1812dd
commit f84f40f869
2 changed files with 11 additions and 2 deletions

View File

@@ -442,6 +442,7 @@ fi
netconf="/dev/netconf/$ethx"
mkdir -p "$netconf"
$dhcpv4 && echo 1 >"$netconf/dhcpv4" || echo 0 >"$netconf/dhcpv4"
$dhcpv6_or_slaac && echo 1 >"$netconf/dhcpv6_or_slaac" || echo 0 >"$netconf/dhcpv6_or_slaac"
$should_disable_ra_slaac && echo 1 >"$netconf/should_disable_ra_slaac" || echo 0 >"$netconf/should_disable_ra_slaac"
$is_in_china && echo 1 >"$netconf/is_in_china" || echo 0 >"$netconf/is_in_china"
echo "$ethx" >"$netconf/ethx"