A248 / LibertyBans

The be-all, end-all of discipline.
https://ci.hahota.net:8443/job/LibertyBans/
GNU Affero General Public License v3.0
165 stars 40 forks source link

UUID mismatch on Sponge when behind a proxy with info forwarding #229

Closed A248 closed 1 year ago

A248 commented 1 year ago

In my test environment I've configured a Sponge backend server with Velocity's modern forwarding. Then I joined through the proxy.

During Sponge's ServerSideConnectionEvent.Auth, the player's UUID is not yet forwarded. This undocumented caveat in the Sponge API event breaks bans and mutes. The player's true UUID is forwarded and available at a later time, such as during chat events.

This means that in such environments, thus, bans will not match the player's UUID. IP bans function, but UUID bans do not find the offline UUID. Mutes also become unavailable. The mute cache will have an entry for the offline UUID, but not the forwarded online UUID.