Method
addRemoteCandidateCache
(candidate Candidate, srcAddr net.Addr)
Source from the content-addressed store, hash-verified
| 302 | } |
| 303 | |
| 304 | func (c *candidateBase) addRemoteCandidateCache(candidate Candidate, srcAddr net.Addr) { |
| 305 | if c.validateSTUNTrafficCache(srcAddr) { |
| 306 | return |
| 307 | } |
| 308 | c.remoteCandidateCaches.Store(toAddrPort(srcAddr), candidate) |
| 309 | } |
| 310 | |
| 311 | func (c *candidateBase) replaceRemoteCandidateCacheValues(oldRemote, newRemote Candidate) { |
| 312 | c.remoteCandidateCaches.Range(func(key, value any) bool { |