wgengine/magicsock: fix relay endpoint allocation URL (#16344)

Updates tailscale/corp#27502

Signed-off-by: Jordan Whited <jordan@tailscale.com>
pull/16347/head
Jordan Whited 6 months ago committed by GitHub
parent d3bb34c628
commit cd9b9a8cad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -737,7 +737,7 @@ func (r *relayManager) allocateSingleServer(ctx context.Context, wg *sync.WaitGr
const reqTimeout = time.Second * 10
reqCtx, cancel := context.WithTimeout(ctx, reqTimeout)
defer cancel()
req, err := http.NewRequestWithContext(reqCtx, httpm.POST, "http://"+server.String()+"/relay/endpoint", &b)
req, err := http.NewRequestWithContext(reqCtx, httpm.POST, "http://"+server.String()+"/v0/relay/endpoint", &b)
if err != nil {
return
}

Loading…
Cancel
Save