safing-portmaster/netenv/os_default.go
Vladimir Stoilov 6972059321
Android support for getting network addresses and interfaces (#1056)
* Replace unsupported network functions for android

* Refactor default/android net addresses processing

* Add default connection values, Refactor netenv

* Fix compilation error

* Combine network change default/android functions
2023-01-23 16:33:02 +01:00

15 lines
221 B
Go

//go:build !android
package netenv
import (
"net"
)
func osGetInterfaceAddrs() ([]net.Addr, error) {
return net.InterfaceAddrs()
}
func osGetNetworkInterfaces() ([]net.Interface, error) {
return net.Interfaces()
}