WGDashboard icon indicating copy to clipboard operation
WGDashboard copied to clipboard

Add Peer dialog hangs on /16 networks

Open lesha-co opened this issue 2 years ago • 1 comments

Describe The Problem Add Peer dialog hangs on /16 networks

Expected Error / Traceback

No traceback, it just hangs

To Reproduce

  • create interface with /16 network
  • try to add peer

anyway

https://github.com/donaldzou/WGDashboard/blob/d7d7a84bd5aee496846095c48d638ab46c91958a/src/static/js/configuration.js#L494

this line tries to add 65k elements to the DOM and browsers don't like it one bit

lesha-co avatar Jun 20 '22 17:06 lesha-co

optionally cap available_ips to, say, first 1000 elements (easy) or make list virtual (hard but really only viable option to display large lists)

lesha-co avatar Jun 21 '22 07:06 lesha-co