Skip to content

Commit

Permalink
[support/network] Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Mar 4, 2025
1 parent 8cd70d9 commit 9d03671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/network/ip-resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func resolvePublicIP(resolverURL string) string {
// extractIPFromCloudflareTrace extracts public IP from Cloudflare trace
// response
func extractIPFromCloudflareTrace(data string) string {
for i := 0; i < 16; i++ {
for i := range 16 {
f := strutil.ReadField(data, i, false, '\n')

if f == "" {
Expand Down

0 comments on commit 9d03671

Please sign in to comment.