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

Use localhost instead of 127.0.0.1 for bootstrapping #178

Closed
wants to merge 1 commit into from

Conversation

pyoor
Copy link
Collaborator

@pyoor pyoor commented Sep 26, 2023

This is required as part of MozillaSecurity/grizzly#374 to ensure that the initial harness page is loaded on localhost instead of 127.0.0.1. I'm unsure if the disparity between the two will cause cross origin issues or not but there's no harm in changing it.

@pyoor pyoor requested a review from tysmith September 26, 2023 15:50
Copy link
Collaborator

@tysmith tysmith left a comment

Choose a reason for hiding this comment

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

The bootstrap code does not need to change. It is only used to launch the browser and will redirect to any location.

@@ -45,7 +45,7 @@ def __init__(self):
self._handler = ReqHandler
while True:
try:
self._httpd = HTTPServer(("127.0.0.1", 0), self._handler)
self._httpd = HTTPServer(("localhost", 0), self._handler)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This also does not need to change.

@pyoor
Copy link
Collaborator Author

pyoor commented Sep 26, 2023

Closing this entirely as it's deemed unnecessary and the performance impact on Windows due to localhost resolution isn't worth the change.

@pyoor pyoor closed this Sep 26, 2023
@pyoor pyoor deleted the srv-localhost branch September 26, 2023 20:59
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.

2 participants