Skip to content
This repository was archived by the owner on May 15, 2020. It is now read-only.

Change listen() in DnsServer to use socket creation callback interface. #442

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/dns_server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ module.exports = class DnsServer extends dnsserver.Server
# `DnsServer` quack like a `HttpServer` (for initialization, at
# least).
listen: (port, callback) ->
@bind port
callback?()
@bind port, -> callback?()

# Each incoming DNS request ends up here. If it's an `A` query
# and the domain name matches the top-level domain specified in our
Expand Down