relay: added private tunnel

This commit is contained in:
ginuerzh
2023-01-29 11:55:26 +08:00
parent 93b40f4c86
commit 24037aba7b
11 changed files with 174 additions and 59 deletions

View File

@ -212,8 +212,7 @@ func (h *relayHandler) handleTunnel(ctx context.Context, conn net.Conn, tunnelID
return
}
var connectorID relay.ConnectorID
copy(connectorID[:], uuid[:])
connectorID := relay.NewTunnelID(uuid[:])
af := &relay.AddrFeature{}
err = af.ParseFrom(h.ep.Addr().String())