added missing func.

This commit is contained in:
Ginder Singh
2026-07-28 16:57:12 -04:00
parent f6377209be
commit e6441e29a3
+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