Commit c57e118
fix: fill subscriber address before calling .peer() to avoid panic
PR #2172 added detailed tracing that calls subscriber.peer() BEFORE
filling in the address from source_addr. This causes a panic when the
subscriber has PeerAddr::Unknown (NAT peers).
The correct order (from PR #2171) is:
1. Check if address is unknown
2. Fill in address from source_addr
3. THEN call .peer() for tracing
This regression was introduced when merging PR #2172's tracing
improvements without preserving the correct order of operations.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent f9a1f7a commit c57e118
1 file changed
+14
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| 413 | + | |
413 | 414 | | |
414 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
415 | 428 | | |
416 | 429 | | |
417 | 430 | | |
418 | | - | |
| 431 | + | |
419 | 432 | | |
420 | 433 | | |
421 | 434 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | 435 | | |
433 | 436 | | |
434 | 437 | | |
| |||
0 commit comments