Feature request - wait for: either url
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 87
- PR merge metrics
- No merged PRs in 30d
Description
A nice to have would be the ability to OR URLs.
One implementation could be:
`wait-on (tcp:[::1]:80 tcp:127.0.0.1:80)`
Alternatively, it could be pure config.
If I've misread the docs and this already exists, then my apologies.
Issue I'm solving:
Since updating to Node17+. Node DNS lookups return IPv6 first. Which might not seem like a massive issue, but `localhost` URLs are now in theory `[::1]:{port}` rather than `127.0.0.1:{port}`
My current project is using wait on like so - `wait-on localhost:5000 localhost:5001` and will hang as the servers are starting on `[::1]:5000` ... etc..
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the wait-on command-line and Node.js API handling for resource lists, then check the documented configuration options. Define how an OR group such as `(tcp:[::1]:80 tcp:127.0.0.1:80)` should parse and behave alongside existing resources, and verify that localhost waits complete when either address becomes available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli, networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100