Use ChannelBind for TURN Permissions

Wasteful to use just indications
This commit is contained in:
Sean DuBois
2019-06-10 00:56:03 -07:00
parent 116ba6b111
commit b28205a1f1
+3
View File
@@ -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) {