diff --git a/.travis.yml b/.travis.yml index 261ac67..33f62d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,8 @@ language: node_js -sudo: false +sudo: false node_js: -- '0.12' -- '0.10' +- '4' +- '6' before_script: - npm cache clean - npm install -g grunt-cli diff --git a/lib/index.js b/lib/index.js index f68318c..ad55899 100755 --- a/lib/index.js +++ b/lib/index.js @@ -93,7 +93,7 @@ function getComputerFingerprint (callback, append) { function getIPAddresses (callback) { getComputerFingerprint(function (err, fingerprint) { try { - var internalIP = require('internal-ip')(); + var internalIP = require('ip').address(); var handler = function errorHandler(e) { // this happens if we are offline, just capture it for now }; diff --git a/package.json b/package.json index 3b5dba3..f312d14 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "appc-pubsub", - "version": "0.1.0", + "version": "0.1.1", "description": "AppC pubsub client library", "main": "index.js", "scripts": { @@ -22,7 +22,7 @@ "dependencies": { "colors": "^1.1.2", "debug": "^2.2.0", - "internal-ip": "^1.0.1", + "ip": "^1.1.5", "public-ip": "^1.0.2", "request": "^2.58.0", "socket.io-client": "^1.3.5"