Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

fix: Only filter by wss not dns #218

Merged
merged 4 commits into from
Mar 1, 2023
Merged

Conversation

MarcoPolo
Copy link
Contributor

Browsers can dial IP addresses just fine. There's no need for this to be only DNS addresses.

@achingbrain
Copy link
Member

I think the reason this is here is because you're likely to only have a valid SSL cert on a domain name, trying to connect to an IP address via https/wss can lead to lots of error messages about invalid certificates which people find disconcerting.

@MarcoPolo
Copy link
Contributor Author

You can have an ssl certificate for an IP address. It's less common, but still possible.

Also it's much more obvious if you see a SSL cert error rather than a "No valid address error", but that's a separate discussion.

@achingbrain
Copy link
Member

Fair enough. Can you please add the wss filter as a new export from src/filters.ts? Otherwise this is a breaking change due to the removal of the dnsWss filter.

@MarcoPolo
Copy link
Contributor Author

@achingbrain I added back the dnsWss export.

@achingbrain achingbrain merged commit 434d44c into master Mar 1, 2023
@achingbrain achingbrain deleted the marco/filter-addrs-update branch March 1, 2023 19:46
github-actions bot pushed a commit that referenced this pull request Mar 3, 2023
## [5.0.4](v5.0.3...v5.0.4) (2023-03-03)

### Bug Fixes

* Only filter by wss not dns ([#218](#218)) ([434d44c](434d44c))

### Trivial Changes

* Update .github/workflows/semantic-pull-request.yml [skip ci] ([fad99cc](fad99cc))
* Update .github/workflows/semantic-pull-request.yml [skip ci] ([b1954aa](b1954aa))
@github-actions
Copy link

github-actions bot commented Mar 3, 2023

🎉 This PR is included in version 5.0.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants