balthazar / react-native-zeroconf

:satellite: Discover Zeroconf services using react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Addresses

elmcapp opened this issue · comments

I like to know if you could add a key for each address

example:
addresses:[
{
Mac: 'fe80::b09c:4aff:f',
ip4: '123.456.3.56
]

This way we know what kind of address we are working with.

At first I could do addresses[0] and if would always get the ipv4 however with new update of macOS and iOS the ipv4 is not always first, sometimes I get the Mac address first.

I need to make sure I always get the ip address

FYI I realise this was raised a year ago but that's not the MAC address, it's an IPV6 address