diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2018-09-16 23:44:09 -0500 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2018-09-17 00:01:12 -0500 |
| commit | b1a3bdd6e8dba5df77f25b3813bcb73043b14bbc (patch) | |
| tree | eabb97e791c3605516907f6f798811e2c0b5ea94 /src/mainwindow.cpp | |
| parent | 22a004be2ebca388866201c58bdd8e61f7fb2d2e (diff) | |
Automatically set CDN as a preferred server
This also removes the (free) and (premium) labels from the servers as they aren't useful anymore. Premium users get premium speeds on all servers. Added (automatic) tag to the CDN server to indicate it will automatically pick servers based on geography.
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0a4ab912..04491c3e 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -4580,7 +4580,7 @@ void MainWindow::nxmDownloadURLs(QString, int, int, QVariant, QVariant resultDat info.name = serverInfo["Name"].toString();
info.premium = serverInfo["IsPremium"].toBool();
info.lastSeen = QDate::currentDate();
- info.preferred = 0;
+ info.preferred = !info.name.compare("CDN", Qt::CaseInsensitive);
// other keys: ConnectedUsers, Country, URI
servers.append(info);
}
|
