fix(#124): Improve localhost handling, add cache for ipv6 & ipv4 check #1136
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
this fix #1114 PR (#124 issue) , by properly implementing localhost, @helloanoop this time I did multiple tests on linux & windows and it works nicely, as a bonus, it also fix
[::1]
axios issue. Could you check if it's good for you too ?The cache can create issue though, if you have your localhost listening on ipv6, doing a request with bruno, then changing localhost to ipv4, bruno will still try to reach ipv6, anyway that's a minor issue and a restart of bruno will clear the cache
Contribution Checklist: