balena-io-modules / device-diagnostics

on-device diagnostics tool
9 stars 8 forks source link

Implement checks for IPv4 and IPv6 stack #290

Closed 20k-ultra closed 2 years ago

20k-ultra commented 2 years ago

Add 2 checks...1 for IPv4 and another for IPv6..for both checks just try to curl ipv6.google.com and ipv4.google.com as they will return their respective IP types when resolved.

This is helpful to debug whatever network error we see on devices that aren't clear right away as broken IPv4/IPv6 network stacks can have different errors.