mirror of
https://github.com/v2rayA/v2rayA.git
synced 2024-11-25 16:34:19 +08:00
34 lines
849 B
Go
34 lines
849 B
Go
package main
|
|
|
|
import (
|
|
"runtime"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
_ "github.com/v2rayA/v2rayA/conf/report"
|
|
_ "github.com/v2rayA/v2rayA/pkg/plugin/juicity"
|
|
_ "github.com/v2rayA/v2rayA/pkg/plugin/simpleobfs"
|
|
_ "github.com/v2rayA/v2rayA/pkg/plugin/socks5"
|
|
_ "github.com/v2rayA/v2rayA/pkg/plugin/ss"
|
|
_ "github.com/v2rayA/v2rayA/pkg/plugin/ssr"
|
|
_ "github.com/v2rayA/v2rayA/pkg/plugin/tcp"
|
|
_ "github.com/v2rayA/v2rayA/pkg/plugin/tls"
|
|
_ "github.com/v2rayA/v2rayA/pkg/plugin/trojanc"
|
|
_ "github.com/v2rayA/v2rayA/pkg/plugin/tuic"
|
|
_ "github.com/v2rayA/v2rayA/pkg/plugin/ws"
|
|
"github.com/v2rayA/v2rayA/pkg/util/log"
|
|
)
|
|
|
|
func main() {
|
|
gin.SetMode(gin.ReleaseMode)
|
|
checkEnvironment()
|
|
if runtime.GOOS == "linux" {
|
|
checkTProxySupportability()
|
|
}
|
|
initConfigure()
|
|
checkUpdate()
|
|
hello()
|
|
if err := run(); err != nil {
|
|
log.Fatal("main: %v", err)
|
|
}
|
|
}
|