platform: Add boxdd

This commit is contained in:
世界
2026-07-13 11:23:59 +08:00
parent 2e751ae2c7
commit a8a69228d8
37 changed files with 7256 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
package main
import (
"os"
E "github.com/sagernet/sing/common/exceptions"
)
func runService() (bool, error) {
if os.Getenv("INVOCATION_ID") != "" && listenAddress != "" {
return true, E.New("--listen is not allowed in service mode")
}
return false, nil
}
func preparePlatformWorkingDirectory() error {
return os.MkdirAll(workingDirectory, 0o700)
}