Skip to content

v1.7.6 - Configurable Peers Default Limit

Choose a tag to compare

@yellowcooln yellowcooln released this 22 Mar 23:54
· 80 commits to main since this release
215f8ca

v1.7.6

This release makes the Peers tool default list size configurable via environment variable. #31

Changes

  • Added PEERS_DEFAULT_LIMIT
  • /peers/{device_id} now uses PEERS_DEFAULT_LIMIT when no ?limit= query is provided
  • Explicit ?limit= still overrides the environment default
  • Both the environment default and query override are clamped to a maximum of 50
  • Updated example env, compose, and docs to include the new setting

Example

PEERS_DEFAULT_LIMIT=25

Notes

Default remains 8 if the environment variable is not set
This change only affects the default number of peers returned and does not impact peer counting logic