react-native-zeroconf icon indicating copy to clipboard operation
react-native-zeroconf copied to clipboard

added addresses dictionary with keys

Open jerryseigle opened this issue 3 years ago • 1 comments

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

jerryseigle avatar Dec 01 '22 09:12 jerryseigle

Just created an easy way to detect the type of address. Is this something you would consider merging

jerryseigle avatar Dec 13 '22 05:12 jerryseigle