Skip to content
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

No crash on unknown socktype #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

GameParrot
Copy link
Contributor

@GameParrot GameParrot commented May 27, 2023

Return 0 instead of throw when unknown
Closes minecraft-linux/mcpelauncher-manifest#830
Closes minecraft-linux/mcpelauncher-manifest#832
I don't think it's good to crash when the type is unknown. It could probably be abused if the port it is listening on is forwarded.

@probablypablito
Copy link

Any update on this?

@Velicxe
Copy link

Velicxe commented Jun 7, 2023

How do you use this?

@def-SpaceWar
Copy link

def-SpaceWar commented Jun 8, 2023

You have to build the launcher from source using these new commits instead of the defaults in libc-shim when compiling from source. It's in one of the build steps. As of right now, as a Wayland/Hyprland user, I broke everything X11, so I can't help more at the moment. If you're wondering how I broke my X11 display, know I use Gentoo.

Edit: I built my launcher from source and it worked perfectly fine; except for this error of course.

@def-SpaceWar
Copy link

This works! This fixes the bug, I tested it with myself and an alt account on my own world. Thank you so much!

@ASHADOW1
Copy link

This works! This fixes the bug, I tested it with myself and an alt account on my own world. Thank you so much!

How do I exactly do that? I'm new here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crashes when a friend is joining or when joining a friend. game crashes when friends join
5 participants