add ver in log

This commit is contained in:
YouROK
2023-02-13 23:55:51 +03:00
parent f3ec7806f4
commit 5816dc1e2b

View File

@@ -28,7 +28,7 @@ var (
) )
func Start(port string) { func Start(port string) {
log.TLogln("Start TorrServer") log.TLogln("Start TorrServer " + version.Version)
ips := getLocalIps() ips := getLocalIps()
if len(ips) > 0 { if len(ips) > 0 {
log.TLogln("Local IPs:", ips) log.TLogln("Local IPs:", ips)
@@ -40,7 +40,7 @@ func Start(port string) {
} }
rutor.Start() rutor.Start()
gin.SetMode(gin.ReleaseMode) //gin.SetMode(gin.ReleaseMode)
//corsCfg := cors.DefaultConfig() //corsCfg := cors.DefaultConfig()
//corsCfg.AllowAllOrigins = true //corsCfg.AllowAllOrigins = true