all: do not listen on 0.0.0.0 on desktop clients

Since this may create security vulnerabilities such as DNS amplification
or abusing because the listener was exposed to the entire local network.
This commit is contained in:
Cuong Manh Le
2025-05-06 19:59:11 +07:00
committed by Cuong Manh Le
parent ace3b1e66e
commit 00e9d2bdd3
5 changed files with 34 additions and 4 deletions
+7
View File
@@ -0,0 +1,7 @@
package ctrld
// IsDesktopPlatform indicates if ctrld is running on a desktop platform,
// currently defined as macOS or Windows workstation.
func IsDesktopPlatform() bool {
return true
}