From c99cfec1b0497d57fe78f96545c322c42db5471a Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Thu, 27 Nov 2025 02:55:34 +0000 Subject: [PATCH] IPv6: wwclient support Signed-off-by: Timothy Middelkoop --- CHANGELOG.md | 1 + internal/app/wwclient/root.go | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4466a2fd..02044fa9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Set `addr-gen-mode=eui64` - Set dnsmasq to listen to the Warewulf interface to prevent to binding to localhost:53 - Added Ipv6 support to `/etc/hosts` on host and nodes. +- Added IPv6 support to wwclient ### Removed diff --git a/internal/app/wwclient/root.go b/internal/app/wwclient/root.go index 358c0b6b..29c9a97d 100644 --- a/internal/app/wwclient/root.go +++ b/internal/app/wwclient/root.go @@ -225,7 +225,11 @@ func CobraRunE(cmd *cobra.Command, args []string) (err error) { var finishedInitialSync bool = false ipaddr := os.Getenv("WW_IPADDR") if ipaddr == "" { - ipaddr = conf.Ipaddr + if conf.Ipaddr6 != "" { + ipaddr = conf.Ipaddr6 + } else { + ipaddr = conf.Ipaddr + } } for {