mirror of
https://github.com/safing/portmaster
synced 2025-09-02 02:29:12 +00:00
* 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
15 lines
221 B
Go
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()
|
|
}
|