added missing func.

This commit is contained in:
Ginder Singh
2026-07-02 15:21:08 -04:00
parent 8704db2476
commit 2e3e5a67e1
+7
View File
@@ -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