refactored unneccesary db call

This commit is contained in:
0xdcarns
2021-10-27 10:02:39 -04:00
parent e4e8f368d6
commit f91dae5355
2 changed files with 16 additions and 28 deletions

View File

@@ -271,6 +271,7 @@ func GetFreePort(rangestart int32) (int32, error) {
if err != nil {
return 0, err
}
for x := rangestart; x <= 65535; x++ {
conflict := false
for _, i := range devices {