diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-01-03 16:53:00 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-01-03 16:53:00 -0800 |
commit | 63d605215982108b3ab606324052b00c56c3222c (patch) | |
tree | 043f617e9222870d2ba97b6548bf3f62ea7f107a /ZeroTierUI | |
parent | 50043f9cd68c8642300a254cf76967a84d55634c (diff) | |
download | infinitytier-63d605215982108b3ab606324052b00c56c3222c.tar.gz infinitytier-63d605215982108b3ab606324052b00c56c3222c.zip |
Mac installer work.
Diffstat (limited to 'ZeroTierUI')
-rw-r--r-- | ZeroTierUI/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ZeroTierUI/mainwindow.cpp b/ZeroTierUI/mainwindow.cpp index 521868cc..b4afcbbb 100644 --- a/ZeroTierUI/mainwindow.cpp +++ b/ZeroTierUI/mainwindow.cpp @@ -120,7 +120,7 @@ void MainWindow::timerEvent(QTimerEvent *event) } #endif - if (!ZeroTier::Utils::readFile(dotAuthFile.c_str(),authToken)) { + if (!ZeroTier::Utils::readFile(ZeroTier::Node::LocalClient::authTokenDefaultUserPath().c_str(),authToken)) { QMessageBox::critical(this,"Cannot Authorize","Unable to authorize this user to administrate ZeroTier One.\n\nTo do so manually, copy 'authtoken.secret' from the ZeroTier One home directory to '.zeroTierOneAuthToken' in your home directory and set file modes on this file to only be readable by you (e.g. 0600 on Mac or Linux systems).",QMessageBox::Ok,QMessageBox::NoButton); QApplication::exit(1); return; @@ -132,7 +132,7 @@ void MainWindow::timerEvent(QTimerEvent *event) // TODO: do something more user-friendly here... or maybe try to restart // the service? - if (++this->cyclesSinceResponseFromService == 3) + if (++this->cyclesSinceResponseFromService == 4) QMessageBox::critical(this,"No Response from Service","The ZeroTier One service does not appear to be running.",QMessageBox::Ok,QMessageBox::NoButton); zeroTierClient->send("info"); |