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 c6600c5 commit 0e4a068
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 @@ -98,7 +98,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")

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

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: os

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

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: os

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

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: os

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

View workflow job for this annotation

GitHub Actions / test_client_on_docker

undefined: os

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

View workflow job for this annotation

GitHub Actions / android_build

undefined: os

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

View workflow job for this annotation

GitHub Actions / test

undefined: os

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

View workflow job for this annotation

GitHub Actions / test (386, sqlite)

undefined: os

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

View workflow job for this annotation

GitHub Actions / test (amd64, jsonfile)

undefined: os

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

View workflow job for this annotation

GitHub Actions / test (386, jsonfile)

undefined: os

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

View workflow job for this annotation

GitHub Actions / test (jsonfile)

undefined: os

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

View workflow job for this annotation

GitHub Actions / test (amd64, sqlite)

undefined: os

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

View workflow job for this annotation

GitHub Actions / test (sqlite)

undefined: os
assignSequentialIPs, err := strconv.Atoi(assignSequentialIPsStr)

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

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: strconv) (typecheck)

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

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: strconv) (typecheck)

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

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: strconv) (typecheck)

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

View workflow job for this annotation

GitHub Actions / test_client_on_docker

undefined: strconv

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

View workflow job for this annotation

GitHub Actions / android_build

undefined: strconv

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

View workflow job for this annotation

GitHub Actions / test

undefined: strconv

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

View workflow job for this annotation

GitHub Actions / test (386, sqlite)

undefined: strconv

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

View workflow job for this annotation

GitHub Actions / test (amd64, jsonfile)

undefined: strconv

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

View workflow job for this annotation

GitHub Actions / test (386, jsonfile)

undefined: strconv

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

View workflow job for this annotation

GitHub Actions / test (jsonfile)

undefined: strconv

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

View workflow job for this annotation

GitHub Actions / test (amd64, sqlite)

undefined: strconv

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

View workflow job for this annotation

GitHub Actions / test (sqlite)

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

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

Expand Down

0 comments on commit 0e4a068

Please sign in to comment.