Closed surik closed 9 months ago
Use netip.ParseAddrPort instead of strings.Split to support extraction of both ipv4 and ipv6.
netip.ParseAddrPort
strings.Split
The interceptors/realip/realip_test.go file was extended with additional cases.
interceptors/realip/realip_test.go
Thanks for your contribution!
Changes
Use
netip.ParseAddrPort
instead ofstrings.Split
to support extraction of both ipv4 and ipv6.Verification
The
interceptors/realip/realip_test.go
file was extended with additional cases.