Comparing version 1.0.2 to 1.0.3
@@ -42,9 +42,8 @@ 'use strict'; | ||
// Connect options for canihazip API, GET method is implicit. | ||
var canihazipOptions = { | ||
host: 'canihazip.com', | ||
path: '/s' | ||
var options = { | ||
host: 'api.ipify.org', | ||
}; | ||
// Make a request to canihazip and end it immediately. | ||
protocol.request(canihazipOptions, httpCallback) | ||
protocol.request(options, httpCallback) | ||
.end(); | ||
@@ -51,0 +50,0 @@ }); |
{ | ||
"name": "canihazip", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Get public IP using canihazip.com.", | ||
@@ -5,0 +5,0 @@ "author": { |
5638
93