Skip to content

Conversation

@duckboycool
Copy link
Contributor

What is this fixing or adding?

Changes the default hostname to localhost for both --host and HOST_ADDRESS, and adds the specific address (and version) in the descriptions for WebHost-generated YAMLs. If somebody prefers to be doxxed, they can manually set an empty string to use the current behavior.

Some discussion in the discord below here. https://discord.com/channels/731205301247803413/731214280439103580/1443405760699826387

How was this tested?

Generating regular and weighted YAMLs, checking room page and server log to make sure they don't doxx me, generating a new host.yaml to make sure the default works, setting the values back to empty string.

If this makes graphical changes, please attach screenshots.

image image

@github-actions github-actions bot added affects: core Issues/PRs that touch core and may need additional validation. affects: webhost Issues/PRs that touch webhost and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Dec 1, 2025
player_name = options["name"]
del options["name"]

description = (f"Generated by {'https' if request.is_secure else 'http'}://{app.config['HOST_ADDRESS']} "
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if this is the best way to determine if the server is https or not. We could also use request.host_url and go off of the request for hostname too, but I don't think that'd be desirable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

affects: core Issues/PRs that touch core and may need additional validation. affects: webhost Issues/PRs that touch webhost and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant