Use wlynxg/anet lib to get available network interfaces on Android

'github.com/wlynxg/anet' is a partial alternative implementation of
the 'golang.org/x/net' module. The goal of 'anet' module is to provide
workarounds of the issues golang/go#40569 and golang/go#68082 on
Android 11+.
This commit is contained in:
Sergey Bobrenok 2024-07-25 01:00:32 +03:00
parent 340cedbe14
commit 0813897fa3
3 changed files with 10 additions and 3 deletions

1
go.mod
View file

@ -12,6 +12,7 @@ require (
github.com/kardianos/minwinsvc v1.0.2
github.com/quic-go/quic-go v0.45.1
github.com/vishvananda/netlink v1.1.0
github.com/wlynxg/anet v0.0.4-0.20240806025826-e684438fc7c6
golang.org/x/crypto v0.25.0
golang.org/x/mobile v0.0.0-20240716161057-1ad2df20a8b6
golang.org/x/net v0.27.0