Files
v2rayA/service/main.go
T
Zakk 06b8525ba9 chore: drop the debug println from main
It wrote to stderr before logging was set up, outside the log package and
its file/format options.
2026-09-18 02:53:31 +10:00

29 lines
569 B
Go

package main
import (
"github.com/gin-gonic/gin"
_ "github.com/v2rayA/v2rayA/conf/report"
"github.com/v2rayA/v2rayA/pkg/util/log"
)
func main() {
gin.SetMode(gin.ReleaseMode)
// Try running as a service (implemented on Windows, returns false on other platforms)
if tryRunAsService() {
return
}
// Normal startup (non-service mode)
checkEnvironment()
if err := checkPlatformSpecific(); err != nil {
log.Fatal("Platform check failed: %v", err)
}
initConfigure()
checkUpdate()
hello()
if err := run(); err != nil {
log.Fatal("main: %v", err)
}
}