mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-25 12:49:22 +01:00
myip.js: fix comment
Thanks @Zarthus
This commit is contained in:
parent
ce79b87fe6
commit
c3e4a96f4c
@ -10,7 +10,7 @@ var servers4 = dns.setServers(["208.67.222.222", "208.67.220.220"])
|
|||||||
// that takes arguments err and addresses.
|
// that takes arguments err and addresses.
|
||||||
dns.resolve4('myip.opendns.com', function (err, addresses) {
|
dns.resolve4('myip.opendns.com', function (err, addresses) {
|
||||||
|
|
||||||
// In case of error throw the error message?
|
// if err contains a truthy value, an error has occurred
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
|
|
||||||
// Print the first thing in array addresses as it has our IPv4
|
// Print the first thing in array addresses as it has our IPv4
|
||||||
@ -35,7 +35,7 @@ var servers6 = dns.setServers(["2620:0:ccc::2", "2620:0:ccd::2"])
|
|||||||
// that takes arguments err and addresses.
|
// that takes arguments err and addresses.
|
||||||
dns.resolve6('myip.opendns.com', function (err, addresses) {
|
dns.resolve6('myip.opendns.com', function (err, addresses) {
|
||||||
|
|
||||||
// In case of error throw the error message?
|
// if err contains a truthy value, an error has occurred
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
|
|
||||||
// Print the first thing in array addresses as it has our IPv4
|
// Print the first thing in array addresses as it has our IPv4
|
||||||
|
Loading…
Reference in New Issue
Block a user