Skip to content

Commit 83fbef5

Browse files
committed
Merge pull request #758 from nicinabox/fix-packager-with-ipv6
Force curl to use IPv4
2 parents d2c00d5 + b774062 commit 83fbef5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

React/React.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@
452452
);
453453
runOnlyForDeploymentPostprocessing = 0;
454454
shellPath = /bin/sh;
455-
shellScript = "if nc -w 5 -z localhost 8081 ; then\n if ! curl -s \"http://localhost:8081/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port 8081 already in use, packager is either not running or not running correctly\"\n exit 2\n fi\nelse\n open $SRCROOT/../packager/launchPackager.command || echo \"Can't start packager automatically\"\nfi";
455+
shellScript = "if nc -w 5 -z localhost 8081 ; then\n if ! curl -4 -s \"http://localhost:8081/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port 8081 already in use, packager is either not running or not running correctly\"\n exit 2\n fi\nelse\n open $SRCROOT/../packager/launchPackager.command || echo \"Can't start packager automatically\"\nfi";
456456
};
457457
/* End PBXShellScriptBuildPhase section */
458458

0 commit comments

Comments
 (0)