summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-06-13 20:45:57 +0200
committerJakob Borg <jakob@nym.se>2014-06-13 20:45:57 +0200
commit34bd5b9dcf86de9ba7ad03aeab9f5152ab1e19a5 (patch)
treea423d3245621d89430e749adcdf06b9e0ad816cb /cmd
parent58c5e46206485aaed1774c8db7773dfffd98ced7 (diff)
Better android detection
Diffstat (limited to 'cmd')
-rw-r--r--cmd/syncthing/usage_report.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/syncthing/usage_report.go b/cmd/syncthing/usage_report.go
index 9bbb2d2738..6980c9d6d1 100644
--- a/cmd/syncthing/usage_report.go
+++ b/cmd/syncthing/usage_report.go
@@ -75,7 +75,7 @@ func sendUsageReport(m *model.Model) error {
json.NewEncoder(&b).Encode(d)
var client = http.DefaultClient
- if runtime.GOARCH == "arm" {
+ if BuildEnv == "android" {
// This works around the lack of DNS resolution on Android... :(
tr := &http.Transport{
Dial: func(network, addr string) (net.Conn, error) {