Skip to content

Commit

Permalink
fix(network): avoid double brackets around IPv6 address
Browse files Browse the repository at this point in the history
This code would add brackets twice. Fix it.
  • Loading branch information
mwilck authored and johannbg committed Sep 30, 2022
1 parent cf8986a commit 2c26b70
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules.d/40network/net-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ ibft_to_cmdline() {
[ -e "${iface}"/hostname ] && read -r hostname < "${iface}"/hostname
if [ "$family" = "ipv6" ]; then
if [ -n "$ip" ]; then
ip="[$ip]"
[ -n "$prefix" ] || prefix=64
ip="[${ip}/${prefix}]"
mask=
Expand Down

0 comments on commit 2c26b70

Please sign in to comment.