From 34bd5b9dcf86de9ba7ad03aeab9f5152ab1e19a5 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Fri, 13 Jun 2014 20:45:57 +0200 Subject: [PATCH] Better android detection --- cmd/syncthing/usage_report.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syncthing/usage_report.go b/cmd/syncthing/usage_report.go index 9bbb2d27..6980c9d6 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) {