Skip to content

Commit

Permalink
Merge pull request #42 from huwf5/dev
Browse files Browse the repository at this point in the history
fix: delete wrong judgement for addr checking
  • Loading branch information
vyloy authored Oct 25, 2023
2 parents b93f7f3 + 9ddcf1f commit 27eaf13
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/pion/turn/v3"
"github.com/shirou/gopsutil/process"
"io"
"math"
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 27eaf13

Please sign in to comment.