Commit 8424b89
committed
Fix interface selection for IPv6-only hosts
Instead of considering the full IPv4 routing table, we only look for
IPv4 default route and IPv6 routes shorter or equal /8 (for instance
`2000::/3`). Since the `conf.route6` is not ready yet when we first run,
we reload `conf.ifaces` after loading `route6.py`.
This fixes #4303.
Signed-off-by: Ondřej Caletka <ondrej@caletka.cz>1 parent 8cea357 commit 8424b89
2 files changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
380 | 389 | | |
381 | 390 | | |
382 | 391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| 363 | + | |
| 364 | + | |
0 commit comments