Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
fix: support optional no options
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Jul 9, 2017
1 parent bfa0657 commit dd53646
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const query = require('./query')
class MulticastDNS extends EventEmitter {
constructor (peerInfo, options) {
super()
options = options || {}

this.broadcast = options.broadcast !== false
this.interval = options.interval || (1e3 * 10)
Expand Down

0 comments on commit dd53646

Please sign in to comment.