diff --git a/cmd/godns/godns.go b/cmd/godns/godns.go index 62a9c25e..faede4ac 100644 --- a/cmd/godns/godns.go +++ b/cmd/godns/godns.go @@ -27,7 +27,7 @@ var ( optHelp = flag.Bool("h", false, "Show help") // Version is current version of GoDNS. - Version = "0.1" + Version = "v0.1" ) func main() { diff --git a/internal/utils/constants.go b/internal/utils/constants.go index c0ddfc89..af581a61 100644 --- a/internal/utils/constants.go +++ b/internal/utils/constants.go @@ -82,7 +82,7 @@ type ProviderSetting struct { var ( // Version is current version of GoDNS. - Version = "0.1" + Version = "v0.1" // StartTime is the start time of GoDNS. StartTime = time.Now().Unix() diff --git a/web/components/navbar.tsx b/web/components/navbar.tsx index 04fb0308..8793c25a 100644 --- a/web/components/navbar.tsx +++ b/web/components/navbar.tsx @@ -35,7 +35,7 @@ export const Navbar = () => { : null} GoDNS - {isClient && version ? `v${version}` : ''} + {isClient && version && version !== 'v0.1' ? `${version}` : ''}