mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-16 13:17:19 +02:00
added missing func.
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
package ctrld
|
||||
|
||||
import "runtime"
|
||||
|
||||
type dnsFn func() []string
|
||||
|
||||
// isMobile reports whether the current OS is a mobile platform.
|
||||
func isMobile() bool {
|
||||
return runtime.GOOS == "android" || runtime.GOOS == "ios"
|
||||
}
|
||||
|
||||
// nameservers returns DNS nameservers from system settings.
|
||||
func nameservers() []string {
|
||||
var dns []string
|
||||
|
||||
Reference in New Issue
Block a user