diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-05-20 16:35:33 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-05-20 16:35:33 -0700 |
| commit | b6698d8415728a249426ee784fcbebfdfb8e4632 (patch) | |
| tree | 3148eee52ebc44999d1a0783e1c23576de4576d6 /one.cpp | |
| parent | e285a6e75f534229a7eca7089c0b86f15c7423d5 (diff) | |
| download | infinitytier-b6698d8415728a249426ee784fcbebfdfb8e4632.tar.gz infinitytier-b6698d8415728a249426ee784fcbebfdfb8e4632.zip | |
Ground work for reincorporating software updater for select platforms.
Diffstat (limited to 'one.cpp')
| -rw-r--r-- | one.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -888,6 +888,9 @@ static void printHelp(const char *cn,FILE *out) { fprintf(out,"ZeroTier One version %d.%d.%d"ZT_EOL_S"(c)2011-2015 ZeroTier, Inc."ZT_EOL_S,ZEROTIER_ONE_VERSION_MAJOR,ZEROTIER_ONE_VERSION_MINOR,ZEROTIER_ONE_VERSION_REVISION); fprintf(out,"Licensed under the GNU General Public License v3"ZT_EOL_S""ZT_EOL_S); + std::string updateUrl(OneService::autoUpdateUrl()); + if (updateUrl.length()) + fprintf(out,"Automatic update enabled:"ZT_EOL_S" %s"ZT_EOL_S""ZT_EOL_S,updateUrl.c_str()); fprintf(out,"Usage: %s [-switches] [home directory]"ZT_EOL_S""ZT_EOL_S,cn); fprintf(out,"Available switches:"ZT_EOL_S); fprintf(out," -h - Display this help"ZT_EOL_S); |
