We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f6816b commit fc84d92Copy full SHA for fc84d92
lib/common/mobile/ios/simulator/ios-emulator-services.ts
@@ -66,7 +66,9 @@ class IosEmulatorServices implements Mobile.IiOSSimulatorService {
66
data: Mobile.IConnectToPortData
67
): Promise<net.Socket> {
68
try {
69
- const socket = net.connect(data.port);
+ // node v17+ resolves localhost to ::1 (ipv6) instead of 127.0.0.1 (ipv4)
70
+ // so we explicitly pass ipv4
71
+ const socket = net.connect(data.port, "127.0.0.1");
72
return socket;
73
} catch (e) {
74
this.$logger.debug(e);
0 commit comments