Use a separate, unique ID for usage reporting (fixes #1000)

This commit is contained in:
Jakob Borg
2014-11-27 10:00:07 +01:00
parent 82e923dfc8
commit 5251f1c9db
4 changed files with 15 additions and 2 deletions

View File

@@ -23,7 +23,6 @@ import (
"net"
"net/http"
"runtime"
"strings"
"time"
"github.com/syncthing/syncthing/internal/model"
@@ -38,7 +37,7 @@ var stopUsageReportingCh = make(chan struct{})
func reportData(m *model.Model) map[string]interface{} {
res := make(map[string]interface{})
res["uniqueID"] = strings.ToLower(myID.String()[:6])
res["uniqueID"] = cfg.Options().URUniqueID
res["version"] = Version
res["longVersion"] = LongVersion
res["platform"] = runtime.GOOS + "-" + runtime.GOARCH