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

Fix/simplify Linux /proc/net/route parsers #28

Closed greatroar closed 1 year ago

greatroar commented 3 years ago

Here's some improvements to the /proc/net/route parsing on Linux.

tommie commented 3 years ago

Drive-by comment by another user: this looks like a nice simplification.