go-nat
go-nat copied to clipboard
Better handle networks with multiple NATS
This:
- Provides a way to iterate over all discovered NATs.
- Tries to pick the best one.
(also fixes possible goroutine leaks when multiple NATs are discovered)
Honestly, the best way to handle mulitple NATs would be to try to configure all of them. However, this is a simpler interim solution.