diff --git a/cmd/info.go b/cmd/info.go index 246c11d..5937fd0 100644 --- a/cmd/info.go +++ b/cmd/info.go @@ -161,9 +161,14 @@ disk filesystem, interface name, interface hardware address, interface MTU, IPv4 panic(err) } fmt.Println("DNS Servers: ", resolvConf.Servers) - for _, ntp := range *ntpConfig { - fmt.Println("NTP Server: ", ntp.Server) - fmt.Println("NTP Burst Option: ", ntp.IBurst) + + if *ntpConfig == nil { + fmt.Println("NTP Configuration is not available") + } else { + for _, ntp := range *ntpConfig { + fmt.Println("NTP Server: ", ntp.Server) + fmt.Println("NTP Burst Option: ", ntp.IBurst) + } } // Get the ntp pool time diff --git a/constants/version.go b/constants/version.go index 3e2bc28..70dadec 100644 --- a/constants/version.go +++ b/constants/version.go @@ -2,8 +2,8 @@ package constants const ( // Version is the current version of the application - VERSION = "0.0.3" + VERSION = "0.0.4" MAJOR = 0 MINOR = 0 - PATCH = 3 + PATCH = 4 )