Skip to content

Commit

Permalink
Merge pull request #173 from mikefrey/address
Browse files Browse the repository at this point in the history
Adds address function for compatibility with core http and https modules
  • Loading branch information
nwgh committed Jan 28, 2016
2 parents 8570a15 + c5392bd commit 520d13d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,10 @@ Server.prototype.addContext = function addContext(hostname, credentials) {
}
};

Server.prototype.address = function address() {
return this._server.address()
};

function createServerRaw(options, requestListener) {
if (typeof options === 'function') {
requestListener = options;
Expand Down

0 comments on commit 520d13d

Please sign in to comment.