v0.5.0

agentsmd/agents.mdv0.5.0Apr 28, 2023by ekzhang

AI Summary

This release modifies the port selection behavior of the bore tool. Previously, the minimum port was only validated for explicitly specified ports; now, using port 0 triggers a random port selection within the valid range. Additionally, a new --max-port option has been added to allow users to define the upper bound of available ports.

Key Highlights

  • Random port selection now respects the --min-port option
  • New --max-port option added to limit the upper port range
  • Behavior change from OS-based port query to range-based random selection

New Features

  • Random port selection logic
  • Max port option (--max-port)

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