-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spoof secureProfile boolean to true if online mode true #3702
base: master
Are you sure you want to change the base?
Conversation
What's that popup? |
Should the server not set this if bungee/ip forwarding is true, so it can actually be sure chat is secure? |
Actually i do check for it as rewriteId = ( bungee.config.isIpForward() ) ? uniqueId : offlineId; I think the comment may be confusing |
the popup shows when the client receives a login packet where secureProfile is false It indicates that chat messages are not signed |
yes
|
but theoretically its also fixable i will try it |
Shouldn't it also depend on whether the server has secure chat enabled? |
in both cases enabled or not we want to set it to true so we get rid of the popup, it also should work every time if we are an online player. thats why i am checking if the players uuid is not the offline uuid (if its not the offline uuid it surely is the premium uuid) |
Well we don't want to get rid of the popup unless the chat is actually secure. Isn't this really a Spigot issue? |
i think the most servers have disabled secure chat and dont like the popup |
As you noticed from md_5's earlier replies he intends to keep bungeecord close to vanilla behaviour. If server owners want to get rid of the popup, they can do it themself with plugins. |
What if entity rewriting is disabled? |
This is completely unrelated to entity rewriting. |
It is a little bit, there's no rewriteId.
|
no not really, this is just a simplification with the use of the rewritte id because its their. Bassicly does what the comment in the code said // check if the players connection is ip-forwarded, spoof value to true to bypass the unsecure chat popup And that has nothing todo with entity rewritting |
Without entity rewriting you can't check this id |
wrong |
If it's deleted then it is right |
no |
its a single field in the initial hanlder, it does not depend on any entity rewritter at all |
Ok I will add this back and test the patch |
Patch works well, the popup window doesn't appear again, sorry for my lack of knowledge about this rewriteId.
You get this for unvalidated messages right, it it's a message sent by the server it doesn't happen? What if you delete the uuid field or something like that? Or does it have to be special chat packet? |
https://outfluencer.dev/secure-chat-popup-1.21.png
This field was added in 1.20.5 if its value is false the client will show a popup that we don't like