Better android detection

This commit is contained in:
Jakob Borg 2014-06-13 20:45:57 +02:00
parent 58c5e46206
commit 34bd5b9dcf
1 changed files with 1 additions and 1 deletions

View File

@ -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) {