Given a DERPMap, anonymise all IPs and hostnames. Keep track of seen hostnames/cert names to anonymize them from future logs. b.mu must NOT be held.
(cur *tailcfg.DERPMap)
| 156 | // Keep track of seen hostnames/cert names to anonymize them from future logs. |
| 157 | // b.mu must NOT be held. |
| 158 | func (b *TelemetryStore) updateDerpMap(cur *tailcfg.DERPMap) { |
| 159 | b.mu.Lock() |
| 160 | defer b.mu.Unlock() |
| 161 | |
| 162 | b.updateDerpMapLocked(cur) |
| 163 | } |
| 164 | |
| 165 | func (b *TelemetryStore) updateDerpMapLocked(cur *tailcfg.DERPMap) { |
| 166 | if cur == nil { |