From 37ad370344aec96c01d461db53473c78ed7f7240 Mon Sep 17 00:00:00 2001 From: Maycon Santos Date: Mon, 16 Dec 2024 18:09:31 +0100 Subject: [PATCH] [client] Avoid using iota on mixed const block (#3057) Used the values as resolved when the first iota value was the second const in the block. --- client/iface/device/kernel_module_linux.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/client/iface/device/kernel_module_linux.go b/client/iface/device/kernel_module_linux.go index 0d195779dfe..b28ddd36c67 100644 --- a/client/iface/device/kernel_module_linux.go +++ b/client/iface/device/kernel_module_linux.go @@ -27,14 +27,14 @@ import ( type status int const ( - defaultModuleDir = "/lib/modules" - unknown status = iota - unloaded - unloading - loading - live - inuse - envDisableWireGuardKernel = "NB_WG_KERNEL_DISABLED" + unknown status = 1 + unloaded status = 2 + unloading status = 3 + loading status = 4 + live status = 5 + inuse status = 6 + defaultModuleDir = "/lib/modules" + envDisableWireGuardKernel = "NB_WG_KERNEL_DISABLED" ) type module struct {