Work around broken DNS on Android for usage reporting

This commit is contained in:
Jakob Borg
2014-06-12 01:05:00 +02:00
parent 9cd6b85c09
commit 18e5cb6793
3 changed files with 23 additions and 5 deletions

View File

@@ -251,7 +251,10 @@ func restPostConfig(req *http.Request, m *model.Model) {
// Set the corresponding options in newCfg so we don't trigger the restart check if this was the only option change
newCfg.Options.URDeclined = false
newCfg.Options.URAccepted = usageReportVersion
sendUsageRport(m)
err := sendUsageReport(m)
if err != nil {
l.Infoln("Usage report:", err)
}
go usageReportingLoop(m)
} else if !newCfg.Options.UREnabled && cfg.Options.UREnabled {
// UR was disabled