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

somtimes i had false positive #19

Open
volkerrichert opened this issue Feb 19, 2022 · 0 comments
Open

somtimes i had false positive #19

volkerrichert opened this issue Feb 19, 2022 · 0 comments

Comments

@volkerrichert
Copy link

sometimes i got {"mac":null,"host":null,"version":null,"address":"192.168.6.1","family":"IPv4"} form the discovery service which causes an connect error because this is my gateway. I dig into it and found the following answers inside discovery:

[
{"name":"_esphomelib._tcp.local","type":"PTR","ttl":4500,"class":"IN","flush":false,"data":"buero-schreibtisch._esphomelib._tcp.local"},{"name":"buero-schreibtisch.local","type":"A","ttl":120,"class":"IN","flush":true,"data":"192.168.120.75"},
{"name":"buero-schreibtisch._esphomelib._tcp.local","type":"TXT","ttl":4500,"class":"IN","flush":true,"data":[{"type":"Buffer","data":[98,111,97,114,100,61,101,115,112,48,49,95,49,109]},{"type":"Buffer","data":[112,108,97,116,102,111,114,109,61,69,83,80,56,50,54,54]},{"type":"Buffer","data":[109,97,99,61,56,52,102,51,101,98,51,102,54,54,100,97]},{"type":"Buffer","data":[118,101,114,115,105,111,110,61,50,48,50,49,46,49,50,46,49]}]},{"name":"buero-schreibtisch._esphomelib._tcp.local","type":"SRV","ttl":4500,"class":"IN","flush":true,"data":{"priority":0,"weight":0,"port":6053,"target":"buero-schreibtisch.local"}}]

This will point to an array of Buffer :[{"type":"Buffer","data":... and the regex will match. Could you please readd that
if (!match) return null;?

I'm runnig multicast-relay.py to broadcast mDNS, etc between my VLANs

Volker

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