Skip to content

Commit

Permalink
Use HTTPS for the Apple endpoint check
Browse files Browse the repository at this point in the history
Fixes #74
  • Loading branch information
sindresorhus committed Jun 2, 2020
1 parent 9a93a47 commit aef4417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const pAny = require('p-any');
const pTimeout = require('p-timeout');

const appleCheck = options => {
const gotPromise = got('http://captive.apple.com/hotspot-detect.html', {
const gotPromise = got('https://captive.apple.com/hotspot-detect.html', {
timeout: options.timeout,
family: options.version === 'v4' ? 4 : 6,
headers: {
Expand Down

0 comments on commit aef4417

Please sign in to comment.