safing-portmaster/netenv/environment.go
2020-04-10 13:18:52 +02:00

20 lines
466 B
Go

package netenv
import (
"net"
)
// TODO: find a good way to identify a network
// best options until now:
// MAC of gateway
// domain parameter of dhcp
// TODO: get dhcp servers on windows:
// windows: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365917
// this info might already be included in the interfaces api provided by golang!
// Nameserver describes a system assigned namserver.
type Nameserver struct {
IP net.IP
Search []string
}