Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot search with only udp as option #59

Open
AronBuzogany opened this issue Aug 23, 2024 · 0 comments
Open

Cannot search with only udp as option #59

AronBuzogany opened this issue Aug 23, 2024 · 0 comments

Comments

@AronBuzogany
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant