Skip to content

Commit

Permalink
core: 忽略临时 IPv6 地址
Browse files Browse the repository at this point in the history
  • Loading branch information
bin456789 committed Aug 22, 2024
1 parent 7edc57c commit 4942077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1928,7 +1928,7 @@ collect_netconf() {
eval ipv${v}_ethx="$ethx" # can_use_cloud_kernel 要用
eval ipv${v}_mac="$(ip link show dev $ethx | grep link/ether | head -1 | awk '{print $2}')"
eval ipv${v}_gateway="$(ip -$v route show default | awk '$5=="'$ethx'"' | head -1 | awk '{print $3}')"
eval ipv${v}_addr="$(ip -$v -o addr show scope global dev $ethx | head -1 | awk '{print $4}')"
eval ipv${v}_addr="$(ip -$v -o addr show scope global dev $ethx | grep -v temporary | head -1 | awk '{print $4}')"
fi
fi
done
Expand Down

0 comments on commit 4942077

Please sign in to comment.