Skip to content

Commit

Permalink
Use proper DNS equality when probing
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Jan 31, 2016
1 parent 4c2d856 commit e377a17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/registry.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'

var dnsEqual = require('dns-equal')
var Service = require('./service')
var flatten = require('./flatten')

Expand Down Expand Up @@ -106,7 +107,7 @@ function probe (mdns, service, cb) {
}

function matchRR (rr) {
return rr.name === service.fqdn
return dnsEqual(rr.name, service.fqdn)
}

function done (exists) {
Expand Down

0 comments on commit e377a17

Please sign in to comment.