Skip to content

Commit

Permalink
Check internet connectivity with lookup instead of resolve (#1863)
Browse files Browse the repository at this point in the history
Resolves #1818
  • Loading branch information
kdleijer authored and Timer committed Mar 22, 2017
1 parent 2ac3f99 commit 0d4d59f
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 0d4d59f

Please sign in to comment.