Originally opened at rfratto/ckit-archive#5
Yo!
DefaultInterfaces are hardcoded to try eth0 and en0 and advertised by comment for unix-like platforms, but these will never be found on Ubuntu and probably many other linux flavors that use predictable network interface names.
Eg, ethernet is enp4s0f1 for me on Ubuntu 20.04 LTS. examining net.Interfaces() might be a better bet
Yo!
DefaultInterfaces are hardcoded to try eth0 and en0 and advertised by comment for unix-like platforms, but these will never be found on Ubuntu and probably many other linux flavors that use predictable network interface names.
Eg, ethernet is enp4s0f1 for me on Ubuntu 20.04 LTS. examining net.Interfaces() might be a better bet