Use deprecated io constants (#17278)
The new values are not ready for use yet inside Google
This commit is contained in:
@@ -460,7 +460,7 @@ Future<int> findAvailablePort() async {
|
||||
while (true) {
|
||||
try {
|
||||
final ServerSocket socket =
|
||||
await ServerSocket.bind(InternetAddress.loopbackIPv4, port);
|
||||
await ServerSocket.bind(InternetAddress.LOOPBACK_IP_V4, port); // ignore: deprecated_member_use
|
||||
await socket.close();
|
||||
return port;
|
||||
} catch (_) {
|
||||
|
||||
Reference in New Issue
Block a user