summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-12-26 20:57:17 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-12-26 20:57:17 -0800
commitc8166b2db15b692d2c3deba2b7b82343ba478873 (patch)
treeb418e8a043185f14d321b77ae20e440a230fde28 /node/Node.cpp
parent54c2c945e00b4da9931bf16c762860886704c6b3 (diff)
downloadinfinitytier-c8166b2db15b692d2c3deba2b7b82343ba478873.tar.gz
infinitytier-c8166b2db15b692d2c3deba2b7b82343ba478873.zip
Bump version to 0.6.4 for testing, integrate software updater auto-check into PacketDecoder decode path and main loop.
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/node/Node.cpp b/node/Node.cpp
index dd0e47ed..cd8cfb5e 100644
--- a/node/Node.cpp
+++ b/node/Node.cpp
@@ -434,6 +434,9 @@ Node::ReasonForTermination Node::run()
#ifdef ZT_AUTO_UPDATE
if (ZT_DEFAULTS.updateLatestNfoURL.length())
_r->updater = new SoftwareUpdater(_r);
+ else {
+ LOG("WARNING: unable to enable software updates: latest .nfo URL from ZT_DEFAULTS is empty (does this platform actually support software updates?)");
+ }
#endif
// Bind local port for core I/O
@@ -575,6 +578,8 @@ Node::ReasonForTermination Node::run()
_r->mc->clean();
_r->topology->clean();
_r->nc->clean();
+ if (_r->updater)
+ _r->updater->checkIfMaxIntervalExceeded(now);
}
try {