Инициализация
This commit is contained in:
2
main.go
2
main.go
@@ -2,6 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"g365sfu/logger"
|
||||
"g365sfu/sfu"
|
||||
"g365sfu/socket"
|
||||
"net/http"
|
||||
"os"
|
||||
@@ -11,6 +12,7 @@ import (
|
||||
|
||||
func main() {
|
||||
godotenv.Load()
|
||||
sfu.InitWebRTCEngines()
|
||||
if os.Getenv("SECRET") == "" {
|
||||
logger.LogErrorMessage("server failed to start because not set secret key in .env variables")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user