games647 / FastLogin

Checks if a minecraft player has a valid paid account. If so, they can skip offline authentication automatically. (premium auto login)
https://www.spigotmc.org/resources/fastlogin.14153
MIT License
495 stars 121 forks source link

"Not authenticated with Minecraft.net" on BungeeCord #989

Closed k-jiang closed 1 year ago

k-jiang commented 1 year ago

What happened?

Premium players can not join a BungeeCord server. Players get "Not authenticated with Minecraft.net" instead. No errors, and no logs from FastLogin.

Mojang API is fine. We have no issue with the network.

What did you expect?

No response

Steps to reproduce

No response

Plugin list

No response

Configuration file

No response

Server log

No response

Plugin version

build 1192

Platform

BungeeCord

Relevance

k-jiang commented 1 year ago

It turns out BungeeCord has prevent_proxy_connections enabled by default. When we turned it off everything is fine.

Our BungeeCord is behind an HAProxy / Nginx and has proxy_protocol enabled. So we guess there might be some bug between client IPs obtainment and proxy checking.