mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 08:53:05 +00:00
Handle lack of internet
This commit is contained in:
parent
2048e9e136
commit
7c37086dd6
1 changed files with 2 additions and 2 deletions
|
@ -46,8 +46,8 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if cli.Version != "dev" {
|
if cli.Version != "dev" {
|
||||||
res, _ := latest.Check(githubTag, cli.Version)
|
res, err := latest.Check(githubTag, cli.Version)
|
||||||
if res.Outdated {
|
if err == nil && res.Outdated {
|
||||||
fmt.Printf("An updated version of Headscale has been found (%s vs. your current %s). Check it out https://github.com/juanfont/headscale/releases\n",
|
fmt.Printf("An updated version of Headscale has been found (%s vs. your current %s). Check it out https://github.com/juanfont/headscale/releases\n",
|
||||||
res.Current, cli.Version)
|
res.Current, cli.Version)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue