Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
fix: interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Oct 24, 2019
1 parent 1a9b5ba commit bc559c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ class Listener extends EventEmitter {
})
}

getAddrs (cb) {
cb(null, this.address ? [this.address] : [])
}

close () {
if (!this.connected) { return }
this.connected = false // will prevent new conns, but will keep current ones as interface requires it
Expand Down

0 comments on commit bc559c1

Please sign in to comment.