Skip to content

Commit

Permalink
Check internet connectivity with lookup instead of resolve (facebook#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kdleijer authored and Timer committed Mar 22, 2017
1 parent 4d90324 commit fa246f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-react-app/createReactApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ function checkIfOnline(useYarn) {
}

return new Promise(resolve => {
dns.resolve('registry.yarnpkg.com', err => {
dns.lookup('registry.yarnpkg.com', err => {
resolve(err === null);
});
});
Expand Down

0 comments on commit fa246f4

Please sign in to comment.