openmultiplayer/web

Announce endpoint not working.

ksenonadv opened this issue · 2 comments

It looks like the IP address used in announce endpoint is not properly propagated.
The request is failing with the following error:

{"error":"failed to query server: failed to read response: read udp 172.21.0.16:37133-\u003e172.21.0.6:7777: read: connection refused"}

web.StatusNotAcceptable(w, errors.Wrap(err, "failed to query server"))

Ah yeah this needs to use CF-Connecting-IP header (or whatever it's called)

Cloudflare have docs on this: https://developers.cloudflare.com/fundamentals/get-started/http-request-headers/

Is this fixed now?