Skip to content

Conversation

@Ch0wW
Copy link

@Ch0wW Ch0wW commented Nov 21, 2025

It has been noticed that when hosting a privateserver (in case of livestreams), IP addresses are publicly displayed.

What was previously done was to only hide the IP of the host but not the client's IP, which is not acceptable.

This PR just simply does not show IPs only when hosting a privateserver. Fixes what issue #697 really is, on a very specific case.

@turol
Copy link
Member

turol commented Nov 22, 2025

This is not correct, it will break the receiving end which expects the IP address. You need to send some kind of dummy value.

Corrects a stupid mistake I used on a very old fork I made.
@Ch0wW
Copy link
Author

Ch0wW commented Nov 22, 2025

oh right, I made a wrong copy/paste from my previous project which fully disabled it ; it showed IPs only for compatibility purposes with official releases of choco. Sorry !

Copy link
Member

@fabiangreffrath fabiangreffrath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to suggest to initialize a variable with the result of the M_CheckParm("-privateserver") check, instead of checking it during each turn of the loop. And I'd like it to print a dummy like "hidden IP" instead of printing nothing at all.

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.

3 participants