Skip to content

Commit

Permalink
Changed resolve into lookup
Browse files Browse the repository at this point in the history
As discussed in issue facebook#1818
  • Loading branch information
Koen de Leijer committed Mar 20, 2017
1 parent 35d84ef commit ac3c656
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 @@ -516,7 +516,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 ac3c656

Please sign in to comment.