SocketUtils: Fix the multi port function for 0
https://build.spring.io/browse/INT-B43-47
This commit is contained in:
@@ -94,7 +94,7 @@ public final class SocketUtils {
|
||||
|
||||
final List<Integer> openPorts = new ArrayList<Integer>(numberOfRequestedPorts);
|
||||
|
||||
for (int i = seed; i < seed + 200; i++) {
|
||||
for (int i = seed; i < seed + 200; i = i == 0 ? i : i + 1) {
|
||||
try {
|
||||
ServerSocket sock = ServerSocketFactory.getDefault()
|
||||
.createServerSocket(i, 1, InetAddress.getByName("localhost"));
|
||||
|
||||
Reference in New Issue
Block a user