Skip to content

Commit

Permalink
Passing null as address to bind better :).
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Apr 29, 2014
1 parent 507bb90 commit 539a6c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ CoAPServer.prototype.listen = function(port, address, done) {
address = null
}

this._sock.bind(port, address, done)
this._sock.bind(port, address || null, done)
this._port = port
this._address = address

Expand Down

0 comments on commit 539a6c0

Please sign in to comment.