Skip to content

Commit

Permalink
[PUBSUB-16] swap internal-ip to ip module to mitigate unicode vuln
Browse files Browse the repository at this point in the history
  • Loading branch information
pkclark committed Mar 22, 2017
1 parent 999d7a7 commit 0d28f05
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "appc-pubsub",
"version": "0.1.0",
"version": "0.1.1",
"description": "AppC pubsub client library",
"main": "index.js",
"scripts": {
Expand All @@ -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"
Expand Down

0 comments on commit 0d28f05

Please sign in to comment.