mirror of
https://github.com/netbirdio/ice.git
synced 2026-05-22 17:10:58 -07:00
Use ChannelBind for TURN Permissions
Wasteful to use just indications
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user