-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
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)
Metadata
Metadata
Assignees
Labels
No labels