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'),
@@ -9,7 +9,7 @@ var assert = require('assert'),
SysInfoError = require('../sysinfo.js').SysInfoError,
util = require('util');
function getIp(callback) {
function getPublicIp(callback) {
assert.strictEqual(typeof callback, 'function');
superagent.get('http://169.254.169.254/latest/meta-data/public-ipv4').timeout(30 * 1000).end(function (error, result) {