Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Nov 23, 2014
1 parent ceba82d commit 2febab6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
unreleased
==========

* deps: [email protected]
- Fix edge cases with `isValid`

1.0.3 / 2014-09-21
==================

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"repository": "jshttp/proxy-addr",
"dependencies": {
"forwarded": "~0.1.0",
"ipaddr.js": "0.1.3"
"ipaddr.js": "0.1.5"
},
"devDependencies": {
"benchmark": "1.0.0",
Expand Down
2 changes: 2 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ describe('proxyaddr(req, trust)', function () {
var req = createReq('127.0.0.1');
assert.throws(proxyaddr.bind(null, req, 'blargh'), /invalid IP address/);
assert.throws(proxyaddr.bind(null, req, '10.0.300.1/16'), /invalid IP address/);
assert.throws(proxyaddr.bind(null, req, '-1'), /invalid IP address/);
});

it('should reject bad CIDR', function () {
Expand Down Expand Up @@ -440,6 +441,7 @@ describe('proxyaddr.compile(trust)', function () {

it('should reject non-IP', function () {
assert.throws(proxyaddr.compile.bind(null, 'blargh'), /invalid IP address/);
assert.throws(proxyaddr.compile.bind(null, '-1'), /invalid IP address/);
});

it('should reject bad CIDR', function () {
Expand Down

0 comments on commit 2febab6

Please sign in to comment.