Skip to content

Commit 68f2f4f

Browse files
committed
Also update ipv6 even it is not yet active
1 parent 6c475d2 commit 68f2f4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2078,7 +2078,7 @@ default_nic="$(ip -d -j route show | jq -r '.[] | if .dst == "default" then .dev
20782078
# IPv4
20792079
primary_ipv4="$(ip -4 -d -j addr show "$default_nic" | jq -r '.[] | select(length > 0) | .addr_info[] | if .scope == "global" then .local else empty end' | head -n1)"
20802080
# IPv6
2081-
#primary_ipv6="$(ip -6 -d -j addr show "$default_nic" | jq -r '.[].addr_info[] | if .scope == "global" then .local else empty end' | head -n1)"
2081+
#primary_ipv6="$(ip -6 -d -j addr show "$default_nic" | jq -r '.[] | select(length > 0) | .addr_info[] | if .scope == "global" then .local else empty end' | head -n1)"
20822082
ip="$primary_ipv4"
20832083
local_ip="$primary_ipv4"
20842084

0 commit comments

Comments
 (0)