|
|
@ -81,7 +81,7 @@ void DNSUpdater::checkPublicIP() |
|
|
|
m_lastIPCheckTime = QDateTime::currentDateTime(); |
|
|
|
m_lastIPCheckTime = QDateTime::currentDateTime(); |
|
|
|
QNetworkRequest request; |
|
|
|
QNetworkRequest request; |
|
|
|
request.setUrl(QUrl("http://checkip.dyndns.org")); |
|
|
|
request.setUrl(QUrl("http://checkip.dyndns.org")); |
|
|
|
request.setRawHeader("User-Agent", "qBittorrent/" VERSION" chris@qbittorrent.org"); |
|
|
|
request.setRawHeader("User-Agent", "qBittorrent/" VERSION); |
|
|
|
manager->get(request); |
|
|
|
manager->get(request); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -130,7 +130,7 @@ void DNSUpdater::updateDNSService() |
|
|
|
m_lastIPCheckTime = QDateTime::currentDateTime(); |
|
|
|
m_lastIPCheckTime = QDateTime::currentDateTime(); |
|
|
|
QNetworkRequest request; |
|
|
|
QNetworkRequest request; |
|
|
|
request.setUrl(getUpdateUrl()); |
|
|
|
request.setUrl(getUpdateUrl()); |
|
|
|
request.setRawHeader("User-Agent", "qBittorrent/" VERSION" chris@qbittorrent.org"); |
|
|
|
request.setRawHeader("User-Agent", "qBittorrent/" VERSION); |
|
|
|
manager->get(request); |
|
|
|
manager->get(request); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|