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 23, 2017
1 parent 40f558b commit 825b77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ function checkIfOnline(useYarn) {
}

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

0 comments on commit 825b77c

Please sign in to comment.