Commit 3230675
fix: use pub_key() instead of peer() in connect tracing
The acceptor's PeerAddr is intentionally Unknown (NAT scenario) since
the local peer doesn't know its external address yet. Use pub_key()
instead of peer() to avoid panics on unknown addresses.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent ad41b27 commit 3230675
1 file changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
324 | | - | |
| 323 | + | |
| 324 | + | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| |||
830 | 830 | | |
831 | 831 | | |
832 | 832 | | |
833 | | - | |
| 833 | + | |
834 | 834 | | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
| 835 | + | |
839 | 836 | | |
840 | 837 | | |
841 | 838 | | |
| |||
879 | 876 | | |
880 | 877 | | |
881 | 878 | | |
882 | | - | |
| 879 | + | |
883 | 880 | | |
884 | 881 | | |
885 | | - | |
| 882 | + | |
886 | 883 | | |
887 | 884 | | |
888 | 885 | | |
| |||
0 commit comments