egresscheck-framework icon indicating copy to clipboard operation
egresscheck-framework copied to clipboard

Ports parser doesn't filter duplicate ports

Open stufus opened this issue 9 years ago • 0 comments

Currently, adding a port specification (e.g. set PORTS 22-25,23) will add '23' twice. Internally, this is because it generates a per-port array so that the work can be divided up between multiple threads. Deduplicating the array on each addition caused a significant speed penalty. Just need to experiment with ways of deduping the array.

Shouldn't be a hard problem to fix.

stufus avatar Nov 26 '15 09:11 stufus