react-native-zeroconf
react-native-zeroconf copied to clipboard
added addresses dictionary with keys
Added addresses dictionary with keys.
returns the follow
"port": 52968,
"addresses": [
"127.0.0.1",
"::1",
"re20::1",
"192.168.1.10",
"fe82::fh9c:4a3R:fed2:79e1",
],
"fullName": "the real full name._tcp.",
"host": "the real local name.local.",
"addressesDict": {
"IPv4": "192.168.1.10",
"IPv6": "fe82::fh9c:4a3R:fed2:79e1",
},
"txt": {},
"name": "service name"
}
Would be nice if we could figure how to add Mac address and local address with keys to the addressesDict
Just created an easy way to detect the type of address. Is this something you would consider merging