Turn on update checker for local nodes
Peter Borzov committed
Oct 6, 2014 at 17:26 UTC
bd9142f042c30a6d442173da9d63caae86ba03c5
2 files changed
+11
-1
cmd/ipfs/ipfs.go
+10
@@ -119,6 +119,16 @@ func localNode(confdir string, online bool) (*core.IpfsNode, error) {
119
return nil, err
120
}
121
122
+ if cfg.Updates.Check != "ignore" {
123
+ obsolete := checkForUpdates()
124
+ if obsolete != nil {
125
+ fmt.Println(obsolete)
126
+ if cfg.Updates.Check == "error" {
127
+ return nil, obsolete
128
+ }
129
+ }
130
+ }
131
+
132
return core.NewIpfsNode(cfg, online)
133
}
134
cmd/ipfs/version.go
+1
-1
@@ -13,7 +13,7 @@ import (
13
14
// The IPFS version.
15
const (
16
- Version = "0.2.0"
16
+ Version = "0.1.0"
17
EndpointURLLatestReleases = "https://api.github.com/repos/jbenet/go-ipfs/tags"
18
VersionErrorShort = `Warning: You are running version %s of go-ipfs. The latest version is %s.`
19
VersionErrorLong = `