- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestIsRequestFromLocalhost (0.31 sec)
-
pkg/util/net/ip_test.go
} if !reflect.DeepEqual(gotIpv6, tt.wantIpv6) { t.Errorf("ParseIPsSplitToV4V6() gotIpv6 = %v, want %v", gotIpv6, tt.wantIpv6) } }) } } func TestIsRequestFromLocalhost(t *testing.T) { testCases := []struct { name string remoteAddr string expected bool }{ { name: "Localhost IPv4", remoteAddr: "127.0.0.1:8080",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 01 14:41:40 UTC 2024 - 8.7K bytes - Viewed (0)