Skip to content

Cannot search with only udp as option #59

@AronBuzogany

Description

@AronBuzogany

Whenever I search for any UDP service by doing:

const browser = bonjour.find({protocol: 'udp', type: 'switcher_ctrl'}, function (service) {console.log('found', service)})

I think it might be related to the following lines:

if (opts === null || opts.type === undefined) {
this.name = WILDCARD
this.wildcard = true
} else {
this.name = ServiceToString({ name: opts.type, protocol: opts.protocol || 'tcp'}) + TLD
if (opts.name) this.name = opts.name + '.' + this.name
this.wildcard = false
}

if there is no type option supplied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions