vinitshahdeo/PortScanner

[BUG] Duplicate generated ports causing infinite loop

開放

#70 建立於 2020年8月17日

 (3 則留言) (0 個反應) (2 位負責人)Python (122 個分叉)auto 404
CH20bugeasyhacktoberfest

倉庫指標

星標
 (150 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Describe the bug

The random ports generated in /server/utils/randomNum.js will have to pass duplicate port numbers to /server/index.js when high - low < countofPorts. This renders index.js file to enter infinite loop.

To Reproduce

Steps to reproduce the behavior:

  1. Go to /
  2. Edit config.json for range.high-range.low < count .
  3. Open terminal and run npm start
  4. See error (infinite loop)

Expected behavior

If the provided range is less than countofPorts, show error and display a message.

貢獻者指南