Commit 7ad583b
grpclb, channelz: replace net.IP with netip.Addr
Replace legacy net.IP usage with the modern net/netip package:
- grpclb: use netip.AddrFromSlice instead of net.IP cast for parsing
server list IP addresses, with proper error handling for invalid IPs.
- channelz: use netip.AddrFromSlice and net.TCPAddr.AddrPort() for
converting addresses in the channelz protoconv layer.
Contributes to #8884.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c1a9239 commit 7ad583b
File tree
2 files changed
+19
-5
lines changed- balancer/grpclb
- channelz/internal/protoconv
2 files changed
+19
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
86 | 94 | | |
87 | 95 | | |
88 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
69 | 74 | | |
70 | | - | |
71 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
0 commit comments