Fix android update system

This commit is contained in:
Vladimir Stoilov
2023-04-12 17:09:38 +02:00
parent 0562180ba9
commit 7cbabd50c4
4 changed files with 22 additions and 4 deletions

View File

@@ -10,9 +10,13 @@ func osGetInterfaceAddrs() ([]net.Addr, error) {
if err != nil {
return nil, err
}
var netList []net.Addr
for _, addr := range list {
netList = append(netList, addr.ToIPNet())
ipNetAddr, err := addr.ToIPNet()
if err == nil {
netList = append(netList, ipNetAddr)
}
}
return netList, nil