Skip to content

Commit 2c26b70

Browse files
mwilckjohannbg
authored andcommitted
fix(network): avoid double brackets around IPv6 address
This code would add brackets twice. Fix it.
1 parent cf8986a commit 2c26b70

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

modules.d/40network/net-lib.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ ibft_to_cmdline() {
307307
[ -e "${iface}"/hostname ] && read -r hostname < "${iface}"/hostname
308308
if [ "$family" = "ipv6" ]; then
309309
if [ -n "$ip" ]; then
310-
ip="[$ip]"
311310
[ -n "$prefix" ] || prefix=64
312311
ip="[${ip}/${prefix}]"
313312
mask=

0 commit comments

Comments
 (0)