removeAddress stops meshing with a given address.
(address string)
| 133 | |
| 134 | // removeAddress stops meshing with a given address. |
| 135 | func (m *Mesh) removeAddress(address string) bool { |
| 136 | cancelFunc, isActive := m.active[address] |
| 137 | if isActive { |
| 138 | cancelFunc() |
| 139 | delete(m.active, address) |
| 140 | } |
| 141 | return isActive |
| 142 | } |
| 143 | |
| 144 | // Close ends all active meshes with the DERP server. |
| 145 | func (m *Mesh) Close() error { |