From 9ddcf1f7bfbf4ddcc10ad7c3ca660e3cbff70917 Mon Sep 17 00:00:00 2001 From: huwf5 Date: Wed, 25 Oct 2023 13:44:37 +0800 Subject: [PATCH] fix: delete wrong judgement for addr checking --- server/server.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/server/server.go b/server/server.go index 9db7760f..54d16b55 100644 --- a/server/server.go +++ b/server/server.go @@ -20,6 +20,7 @@ import ( "encoding/json" "errors" "fmt" + "github.com/pion/turn/v3" "github.com/shirou/gopsutil/process" "io" "math" @@ -45,7 +46,6 @@ import ( "github.com/isrc-cas/gt/server/sync" "github.com/isrc-cas/gt/util" "github.com/pion/logging" - "github.com/pion/turn/v3" ) // Server is a network agent server. @@ -299,11 +299,6 @@ func (s *Server) acceptLoop(l net.Listener, handle func(*conn)) { // Start runs the server. func (s *Server) Start() (err error) { s.Logger.Info().Msg(predef.Version) - - if len(s.config.Addr) <= 0 { - err = fmt.Errorf("address (-addr option) '%s' is invalid", s.config.Addr) - return - } err = s.users.mergeUsers(s.config.Users, nil, nil) if err != nil { return