mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-04 08:27:27 +08:00
refactored unneccesary db call
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user