core: 提前适配 alpine 3.19.1

This commit is contained in:
bin456789
2024-01-20 22:27:01 +08:00
parent 9425de5078
commit edf6bd2652
2 changed files with 19 additions and 4 deletions

View File

@ -8,8 +8,14 @@ ipv6_addr=$4
ipv6_gateway=$5
is_in_china=$6
# 3.16-3.18 $device
# 3.19.1+ $iface
# shellcheck disable=SC2154
ethx="$device"
if [ -n "$iface" ]; then
ethx="$iface"
else
ethx="$device"
fi
if $is_in_china; then
ipv4_dns1='119.29.29.29'