v0.5.0
moiseshp/dummylogov0.5.0Apr 28, 2023by ekzhang
AI Summary
This release modifies the port allocation logic for the bore tool. Previously, the --min-port option was only used for validation, but it now actively influences port selection when port 0 is specified. Additionally, the release introduces a new --max-port option.
Key Highlights
- Adds a new --max-port option for defining the upper bound of available ports.
- Changes --min-port to actively influence port selection when port 0 is used.
- Removes the previous behavior where --min-port was only a validation constraint.
- Port 0 now triggers a random port selection within the specified range.
New Features
- New --max-port option.
- Random port assignment respecting --min-port when --port is 0.
Full Release Notes
This version changes the behavior of bore in relation to the `--min-port` option. Now, when a minimum port is specified, any user that connects to bore by default (port: 0) will pick a random port that respects the value of the option. Previously the min port was only used as validation when the user connected with an explicitly specified `--port` variable, and the OS was queried for a free port instead. This also lets us add a `--max-port` option, which was requested by multiple people. ## What's Changed * Use random ports when port number is 0 by @ekzhang in https://github.com/ekzhang/bore/pull/79 **Full Changelog**: https://github.com/ekzhang/bore/compare/v0.4.1...v0.5.0