Skip to content

Commit

Permalink
Use ChannelBind for TURN Permissions
Browse files Browse the repository at this point in the history
Wasteful to use just indications
  • Loading branch information
Sean-Der committed Jun 10, 2019
1 parent 116ba6b commit b28205a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions candidate_relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ func (c *CandidateRelay) addPermission(dst Candidate) error {

c.lock.Lock()
c.permissions[dst.String()] = permission
if err = c.permissions[dst.String()].Bind(); err != nil {
c.agent().log.Warnf("Failed to Create ChannelBind for %v: %v", dst.String, err)
}
c.lock.Unlock()

go func(remoteAddr net.Addr) {
Expand Down

0 comments on commit b28205a

Please sign in to comment.