guard against nil interface

This commit is contained in:
Alex Paguis
2025-02-27 18:53:10 +07:00
committed by Cuong Manh Le
parent cc9e27de5f
commit 46a1039f21
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ NOTE: running "ctrld start" without any arguments will start already installed c
os.Exit(deactivationPinInvalidExitCode)
}
currentIface = runningIface(s)
mainLog.Load().Debug().Msgf("current interface on start: %s", currentIface.Name)
mainLog.Load().Debug().Msgf("current interface on start: %v", currentIface)
}
ctx, cancel := context.WithCancel(context.Background())