joyent/node — Issue #1988: server.address() doesn't work for pipes
Author: devdazed
Created: 2011-11-01 20:54:28+00:00
State: open

server.address() doesn't work when using pipes.
To reproduce:

```javascript
var server = require('net').createServer(),

server.on('listening', function(){
console.log(server.address());
});

//server.listen(8888) //works fine!
server.listen('/tmp/test.sock') //crashes
```

will produce the following error
TypeError: Object # has no method 'getsockname'
at Server.address (net.js:745:23)
at Server. (repl:2:20)
at Server.emit (events.js:64:17)
at Array. (net.js:685:10)
at EventEmitter._tickCallback (node.js:194:26)