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

Add host flag to replay #766

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

Add host flag to replay #766

wants to merge 6 commits into from

Conversation

machawk1
Copy link
Member

@machawk1 machawk1 commented May 8, 2022

Closes #763

@machawk1 machawk1 requested a review from ibnesayeed May 8, 2022 02:18
ipwb/replay.py Outdated Show resolved Hide resolved
IPWBREPLAY_ADDRESS = 'localhost:2016'
IPWBREPLAY_ADDRESS = '0.0.0.0:2016'
Copy link
Member

Choose a reason for hiding this comment

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

The 0.0.0.0 is a "listen to all interfaces" address, it can't be resolved from the client side.

Copy link
Member Author

Choose a reason for hiding this comment

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

@ibnesayeed I agree with your suggestion here. In Windows, localhost seems to resolve by default but not 0.0.0.0. Can you comment on this?

Copy link
Member

Choose a reason for hiding this comment

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

If you want host parameter to be customizable, then add a special case to see if it is set to 0.0.0.0 then for all URI rewriting and FQDN URI purposes use localhost (or the value in the proxy parameter).

@machawk1 machawk1 marked this pull request as draft May 9, 2022 17:04
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.

Allow declaration of a custom hostname on launching the replay
2 participants