jackpal / gateway

A golang library for discovering the address of a LAN gateway.
BSD 3-Clause "New" or "Revised" License
226 stars 69 forks source link

Implement DiscoverInterface for BSD-like OSes #38

Closed fireflycons closed 10 months ago

fireflycons commented 10 months ago

This should now work at least for Darwin/FreeBSD/NetBSD/Solaris, and hopefully for any sane netstat output.

See evidence.md in notes directory for real output on BSD flavors available on AWS.

jackpal commented 10 months ago

I guess I'll do all those things.

Thanks for the patch!