v0.5.0

imputnet/cobaltv0.5.0Apr 28, 2023by ekzhang

AI Summary

This release modifies the `--min-port` option to apply to random port selection when connecting with port 0. It also introduces a new `--max-port` option to provide users with more granular control over available ports.

Key Highlights

  • Updated `--min-port` behavior to apply to random port selection when port is 0.
  • Added `--max-port` option for specifying a maximum port limit.
  • Merged PR #79 to implement the random port logic.

New Features

  • New `--max-port` option.
  • Updated `--min-port` to respect minimum limits for random ports.

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