Skip to content

Commit

Permalink
Update network.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziomal12 committed Apr 10, 2024
1 parent 6a97441 commit 9752eaa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion management/server/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ func AllocatePeerIP(ipNet net.IPNet, takenIps []net.IP) (net.IP, error) {
}

// Check if sequential IP assignment is enabled
assignSequentialIPs, _ := strconv.ParseBool(os.Getenv("NETBIRD_ASSIGN_SEQUENTIAL_IPS"))
assignSequentialIPsStr := os.Getenv("NETBIRD_ASSIGN_SEQUENTIAL_IPS")
assignSequentialIPs, err := strconv.Atoi(assignSequentialIPsStr)

Check failure on line 129 in management/server/network.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: strconv) (typecheck)

Check failure on line 129 in management/server/network.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: strconv) (typecheck)

Check failure on line 129 in management/server/network.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: strconv) (typecheck)

Check failure on line 129 in management/server/network.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: strconv) (typecheck)

Check failure on line 129 in management/server/network.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: strconv) (typecheck)

Check failure on line 129 in management/server/network.go

View workflow job for this annotation

GitHub Actions / test_client_on_docker

undefined: strconv

Check failure on line 129 in management/server/network.go

View workflow job for this annotation

GitHub Actions / ios_build

undefined: strconv

Check failure on line 129 in management/server/network.go

View workflow job for this annotation

GitHub Actions / test (amd64, sqlite)

undefined: strconv

Check failure on line 129 in management/server/network.go

View workflow job for this annotation

GitHub Actions / test (jsonfile)

undefined: strconv

Check failure on line 129 in management/server/network.go

View workflow job for this annotation

GitHub Actions / test (386, jsonfile)

undefined: strconv

Check failure on line 129 in management/server/network.go

View workflow job for this annotation

GitHub Actions / test (386, sqlite)

undefined: strconv

Check failure on line 129 in management/server/network.go

View workflow job for this annotation

GitHub Actions / test (amd64, jsonfile)

undefined: strconv
if err != nil {
return nil, err
}

ips, _ := generateIPs(&ipNet, takenIPMap)

Expand Down

0 comments on commit 9752eaa

Please sign in to comment.