diff options
author | Jakob Borg <jakob@nym.se> | 2014-06-13 20:45:57 +0200 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2014-06-13 20:45:57 +0200 |
commit | 34bd5b9dcf86de9ba7ad03aeab9f5152ab1e19a5 (patch) | |
tree | a423d3245621d89430e749adcdf06b9e0ad816cb /cmd | |
parent | 58c5e46206485aaed1774c8db7773dfffd98ced7 (diff) |
Better android detection
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/syncthing/usage_report.go | 2 |
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) { |