(other uuid.UUID)
| 90 | } |
| 91 | |
| 92 | func (p *Peer) AddTunnel(other uuid.UUID) { |
| 93 | p.t.Helper() |
| 94 | req := &proto.CoordinateRequest{AddTunnel: &proto.CoordinateRequest_Tunnel{Id: tailnet.UUIDToByteSlice(other)}} |
| 95 | select { |
| 96 | case <-p.ctx.Done(): |
| 97 | p.t.Errorf("timeout adding tunnel for %s", p.name) |
| 98 | return |
| 99 | case p.reqs <- req: |
| 100 | return |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | func (p *Peer) RemoveTunnel(other uuid.UUID) { |
| 105 | p.t.Helper() |