mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
Once a NIC is chosen for a route, we currently just grab the first IP on the NIC as the source address. We should choose the address with the longest matching prefix instead. This is a simple linear search of the route table. That's slow for large tables, but large tables are exceedingly rare for use with gVisor and we can always reimplement this with a trie if it becomes necessary. PiperOrigin-RevId: 557941259