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
494 stars 121 forks source link

useProxyAgnosticResolver not effective on PaperMC #1241

Closed Clyde6790pGIT closed 1 month ago

Clyde6790pGIT commented 1 month ago

What happened?

Premium players connecting through Playit.GG cannot connect due to invalid session issue

Steps to reproduce

  1. Enable something similar to useProxyAgnosticResolver
  2. Connect through either local or Playit
  3. See the error

Plugin list

[20:36:42 INFO]: Server Plugins (37): [20:36:42 INFO]: Bukkit Plugins: [20:36:42 INFO]: - AntiPopup, AntiSeedCracker, AuthMe, Chunky, dynmap, eBackup, EntityTrackerFixer, Essentials, FastAsyncWorldEdit, FastLogin [20:36:42 INFO]: floodgate, FoxAddition, Geyser-Recipe-Fix, Geyser-Spigot, GeyserExtras, Graves, GriefPrevention, GrimAC, Hibernate, Hurricane [20:36:42 INFO]: LuckPerms, MyDog, Not-Too-Expensive, OldCombatMechanics, OpenAudioMc, packetevents, PerWorldEffects, ProtocolLib, PurpurExtras, PvPManager [20:36:42 INFO]: Shopkeepers, SkinsRestorer, Veinminer, ViaBackwards, ViaVersion, WorldGuard, XCatch

Configuration file

https://hastebin.com/share/dodefaxofi.yaml

Server log

[20:28:53 INFO]: [FastLogin] New incoming packet START[class=ServerboundHelloPacket, id=0] from UNKNOWN[/127.0.0.1:65295] [20:28:53 INFO]: [FastLogin] GameProfile Hemalkodi uses a premium username [20:28:56 INFO]: [FastLogin] New incoming packet ENCRYPTION_BEGIN[class=ServerboundKeyPacket, id=1] from UNKNOWN[/127.0.0.1:65295] [20:28:56 INFO]: [FastLogin] Enabling onlinemode encryption for /127.0.0.1:65295 [20:28:58 ERROR]: [FastLogin] Session server rejected incoming connection for GameProfile Hemalkodi (/127.0.0.1). Possible reasons are 1) Client IP address contacting Mojang and server during server join were different (Do you use a reverse proxy? -> Enable IP forwarding, or disable the feature in the config). 2) Player is offline, but tried to bypass the authentication 3) Client uses an outdated username for connecting (Fix: Restart client)

Plugin version

1.12-SNAPSHOT-4dd6b9a

Platform

Spigot

Relevance

games647 commented 1 month ago

EDIT: Discard my message with 127.0.0.1 if you used it with local testing.

Please post the complete startup log.

Clyde6790pGIT commented 1 month ago

Hi, here are the full startup logs, I connected thru local and playit. https://hastebin.com/share/rupuhenoku.makefile

Clyde6790pGIT commented 1 month ago

But when I disable it and set prevent-proxy to true, this happens instead. https://hastebin.com/share/xonamorame.ruby

Clyde6790pGIT commented 1 month ago

Any updates?

Clyde6790pGIT commented 1 month ago

image Using it on Velocity just times the premium user out.

games647 commented 1 month ago

What message do you get on the client?

Clyde6790pGIT commented 1 month ago

What message do you get on the client?

Sometimes it shows either "Timed out" or it says "Authentication servers are currently unreachable." or "Invalid Session"

Clyde6790pGIT commented 1 month ago

Seems like reformatting the device the server was on fixed it, maybe a corrupted host file?