yushijinhun / authlib-injector

Build your own Minecraft authentication system.
https://authlib-injector.yushi.moe
GNU Affero General Public License v3.0
752 stars 68 forks source link

局域网无法通过验证,客户端提示“登陆失败:无效会话” #177

Closed Jason-2048 closed 2 years ago

Jason-2048 commented 2 years ago

客户端为官服1.19,启动参数为 @ECHO OFF java -Xmx10G -Xms512M -XX:+UseG1GC -javaagent:authlib-injector-1.2.1.jar=https://mcskin.cn/api/yggdrasil -Dauthlibinjector.noShowServerName -Dauthlibinjector.mojangAntiFeatures=disabled -Dauthlibinjector.usernameCheck=disabled -jar server.jar nogui pause server.properties 中 enforce-secure-profile=true online-mode=true 服务端日志为 [12:02:34] [Server thread/INFO]: com.mojang.authlib.GameProfile@41d1c566[id=<null>,name=***,properties={},legacy=false] (/192.168.3.150:49392) lost connection: Disconnected

Jason-2048 commented 2 years ago

8月5号加载了authlib-injector-1.2.0.jar,直至12号上午还能正常登陆,晚上就不行了,13号早上尝试更新版本指1.2.1,问题重现 通过搜索,发现MCBBS中也有出现过这种问题 https://www.mcbbs.net/forum.php?mod=redirect&goto=findpost&ptid=1304292&pid=24676866 确保server.properties中 prevent-proxy-connections = false 问题重现 修改红石皮肤站的登陆邮箱为纯数字后(原邮箱带有大写下划线),成功登陆 希望后续可以解决这个问题

yushijinhun commented 2 years ago

prevent-proxy-connections 选项默认就是关闭的,我不知道为什么你会打开。

Blessing Skin 对 prevent-proxy-connections 的实现存在问题,最好不要使用此功能。

Jason-2048 commented 2 years ago

prevent-proxy-connections 选项默认就是关闭的,我不知道为什么你会打开。

Blessing Skin 对 prevent-proxy-connections 的实现存在问题,最好不要使用此功能。

我没有打开啊。。本身就是关的,我也没有去动他,只是确保关闭。。

yushijinhun commented 2 years ago

邮箱大小写不一致可能确实会造成问题,这应该是 Blessing Skin 的 bug。