Skip to content

Commit 9caf498

Browse files
committed
only enable ipv6 check for NAV tenant
1 parent 101067a commit 9caf498

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

internal/device-agent/runtimeconfig/runtimeconfig.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,11 @@ func (r *runtimeConfig) LoadEnrollConfig() error {
257257
return err
258258
}
259259

260-
if ec.DeviceIPv6 == "" || strings.HasPrefix(ec.DeviceIPv6, "fd") {
261-
return fmt.Errorf("bootstrap config does not contain a valid IPv6 address, should re-enroll")
260+
// IPv6 is only enabled in NAV
261+
if strings.EqualFold(r.GetActiveTenant().Name, "NAV") {
262+
if ec.DeviceIPv6 == "" || strings.HasPrefix(ec.DeviceIPv6, "fd") {
263+
return fmt.Errorf("bootstrap config does not contain a valid IPv6 address, should re-enroll")
264+
}
262265
}
263266

264267
r.enrollConfig = ec

0 commit comments

Comments
 (0)