Closed fttx closed 5 years ago
1.3.2 - 1.3.3 comparison: https://github.com/becvert/cordova-plugin-zeroconf/compare/0aab272057eeee4bdb4eb81e633b5093d203012a...3669c917571fbb56c6ebd841b00527ee9ade8233
This may be a problem with jmdns:3.5.4
, needs investigation.
jmdns:3.5.4 does not appear to have anything that should cause a situation like this.
Is it possible that the pure-IPv6 resolution (example 1, v1.3.3) behaves different than the IPv4 resolution (example 2, v1.3.2)?
@fttx do you get different results if you force watching for IPv4?
zeroconf.watchAddressFamily = 'ipv4';
zeroconf.watch('_http._tcp.', 'local.', function(result) {
...
Nope, still empty hostname
Yes, it does
Hmm... I'm running out of ideas. Do you have any other mobile devices you could test the app on?
Closing old issue. Feel free to reopen.
Sorry to bother you again, but the bug is still there, and it is related to jmdns. There is a pull request from the past year: https://github.com/jmdns/jmdns/pull/165
Thank you for finding the root cause! @becvert maybe we should keep this open until jmdns/jmdns#165 is merged.
Steps to reproduce:
create a cordova project, add the plugin, add the watch example of the readme inside a
deviceready
callback.This is the output:
While if i revert back to 1.3.2 it works properly:
It doesn't happen with all services, for example, i can see the hostname of my printer with v1.3.3. I use node_mdns to announce the service.