mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
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)
|
||||
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user