Better android detection
This commit is contained in:
parent
58c5e46206
commit
34bd5b9dcf
@ -75,7 +75,7 @@ func sendUsageReport(m *model.Model) error {
|
|||||||
json.NewEncoder(&b).Encode(d)
|
json.NewEncoder(&b).Encode(d)
|
||||||
|
|
||||||
var client = http.DefaultClient
|
var client = http.DefaultClient
|
||||||
if runtime.GOARCH == "arm" {
|
if BuildEnv == "android" {
|
||||||
// This works around the lack of DNS resolution on Android... :(
|
// This works around the lack of DNS resolution on Android... :(
|
||||||
tr := &http.Transport{
|
tr := &http.Transport{
|
||||||
Dial: func(network, addr string) (net.Conn, error) {
|
Dial: func(network, addr string) (net.Conn, error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user