jackpal / gateway

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

Handle more paths #14

Closed mjgarton closed 7 years ago

mjgarton commented 7 years ago

Try a number of common paths for commands instead of just the single "/usr/bin/" location.

jackpal commented 7 years ago

Thanks for the pull request. It encouraged me to think about this problem some more. I now think the best thing to do is give up on using hard coded paths on Linux. Instead we'll rely on PATH.

I've committed a change to do that. Since PATH works again, I don't want to also use hard-coded paths. So I am closing this pull request. I hope the change I made instead of this pull request is useful to you.