(other uuid.UUID)
| 102 | } |
| 103 | |
| 104 | func (p *Peer) RemoveTunnel(other uuid.UUID) { |
| 105 | p.t.Helper() |
| 106 | req := &proto.CoordinateRequest{RemoveTunnel: &proto.CoordinateRequest_Tunnel{Id: tailnet.UUIDToByteSlice(other)}} |
| 107 | select { |
| 108 | case <-p.ctx.Done(): |
| 109 | p.t.Errorf("timeout removing tunnel for %s", p.name) |
| 110 | return |
| 111 | case p.reqs <- req: |
| 112 | return |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | func (p *Peer) UpdateDERP(derp int32) { |
| 117 | p.t.Helper() |