sysinfo: getIp -> getPublicIp

This commit is contained in:
Girish Ramakrishnan
2017-02-23 22:03:44 -08:00
parent fdb8139b03
commit 32e2377828
9 changed files with 21 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
'use strict';
exports = module.exports = {
getIp: getIp
getPublicIp: getPublicIp
};
var assert = require('assert'),
@@ -10,7 +10,7 @@ var assert = require('assert'),
superagent = require('superagent'),
SysInfoError = require('../sysinfo.js').SysInfoError;
function getIp(callback) {
function getPublicIp(callback) {
assert.strictEqual(typeof callback, 'function');
async.retry({ times: 10, interval: 5000 }, function (callback) {