all: disable client discover on desktop platforms

Since requests are mostly originated from the machine itself, so all
necessary metadata is local to it.

Currently, the desktop platforms are Windows desktop and darwin.
This commit is contained in:
Cuong Manh Le
2025-03-26 23:16:57 +07:00
committed by Cuong Manh Le
parent 58c0e4f15a
commit 7a136b8874
5 changed files with 56 additions and 6 deletions
+4
View File
@@ -0,0 +1,4 @@
package ctrld
// SelfDiscover reports whether ctrld should only do self discover.
func SelfDiscover() bool { return true }