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

Unable to browse using add_domain #17

Open
DazWilkin opened this issue Dec 4, 2020 · 0 comments
Open

Unable to browse using add_domain #17

DazWilkin opened this issue Dec 4, 2020 · 0 comments

Comments

@DazWilkin
Copy link

Thanks for the crate!

I'm using an example derived from the repo's example.

I publish a service using (both with and without the with_domain():

    let mut service = DNSServiceBuilder::new("_rust._tcp")
        .with_name("astro-dnssd")
        .with_domain("local")
        .with_port(8080)
        .with_txt_record(txt)
        .build()
        .unwrap();

And I attempt to browse it using:

    let mut browser = ServiceBrowserBuilder::new(&kind[..])
        .with_domain(&domain)
        .build();

If I omit with_domain from both publisher and browser, it works.

If I add it to the publisher and omit it from the browser, it works.

"it works" meaning, the browser discovers the service:

Browser has data!
Added: interface: 4 name: astro-dnssd type: _rust._tcp. domain: local.

NOTE The regtype and domain both include trailing periods

I've tried various combinations of local (and local.) for the domain but I'm unable to filter the browser by domain.

I'm using the example's:

    let _result = browser.start(|result| match result {
        Ok(service) => { .. }
        Err(e) => println!("Error: {:?}", e),

And the Err branch is triggered with:

Error: ServiceError(-65537)
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