Browse Source

Also update ipv6 even it is not yet active

Jaap Marcus 2 years ago
parent
commit
68f2f4fa55
1 changed files with 1 additions and 1 deletions
  1. 1 1
      install/hst-install-debian.sh

+ 1 - 1
install/hst-install-debian.sh

@@ -2078,7 +2078,7 @@ default_nic="$(ip -d -j route show | jq -r '.[] | if .dst == "default" then .dev
 # IPv4
 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)"
 # IPv6
-#primary_ipv6="$(ip -6 -d -j addr show "$default_nic" | jq -r '.[].addr_info[] | if .scope == "global" then .local else empty end' | head -n1)"
+#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)"
 ip="$primary_ipv4"
 local_ip="$primary_ipv4"