diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2015-03-05 14:24:53 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2015-08-27 17:45:29 +0200 |
commit | 7a999a13766ac68049812fedbdfd15a0250f0f07 (patch) | |
tree | c9fd4eaf6ef14b52a4c17aab8b92ce1233e28279 /test/parallel/test-cluster-http-pipe.js | |
parent | f337595441641ad36f6ab8ae770e56c1673ef692 (diff) | |
download | android-node-v8-7a999a13766ac68049812fedbdfd15a0250f0f07.tar.gz android-node-v8-7a999a13766ac68049812fedbdfd15a0250f0f07.tar.bz2 android-node-v8-7a999a13766ac68049812fedbdfd15a0250f0f07.zip |
lib: add net.Socket#localFamily property
Complements the existing net.Socket#remoteFamily property.
PR-URL: https://github.com/nodejs/node/pull/956
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'test/parallel/test-cluster-http-pipe.js')
-rw-r--r-- | test/parallel/test-cluster-http-pipe.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/parallel/test-cluster-http-pipe.js b/test/parallel/test-cluster-http-pipe.js index f4ee5c240e..0aae9b6b44 100644 --- a/test/parallel/test-cluster-http-pipe.js +++ b/test/parallel/test-cluster-http-pipe.js @@ -33,6 +33,7 @@ http.createServer(function(req, res) { assert.equal(req.connection.remoteFamily, 'pipe'); assert.equal(req.connection.remotePort, undefined); assert.equal(req.connection.localAddress, common.PIPE); + assert.equal(req.connection.localFamily, 'pipe'); assert.equal(req.connection.localPort, undefined); res.writeHead(200); res.end('OK'); |