Commit ed23295
authored
fix(autonat): dial first address in multi-address DialRequest
Fixes #6482.
The AutoNAT v2 server selected the last address via `addrs.pop()` but always reported `addr_idx = 0`. Selection now uses the first priority-ordered address and reports its index.
**Attestation**:
- [x] I have read every line of this diff, understand what it does, and can explain it in review.
Pull-Request: #6514.1 parent 8293360 commit ed23295
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
| |||
0 commit comments