nodeByIp method
- String ip
override
Returns the first known node with ip in its Tailscale IP list.
This uses the same inventory snapshot as nodes. It returns null when the IP is unknown or the node has not appeared in the current netmap.
Implementation
@override
Future<TailscaleNode?> nodeByIp(String ip) async {
_requireInitialized();
final target = ip.trim();
if (target.isEmpty) return null;
for (final node in await nodes()) {
if (node.tailscaleIPs.contains(target)) return node;
}
return null;
}