Skip to content

somtimes i had false positive #19

Description

@volkerrichert

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions