mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2025-07-03 06:39:26 +00:00
Remove headers set by a trusted proxy from outputs
This commit is contained in:
@ -102,9 +102,6 @@ func TestClientPort(t *testing.T) {
|
||||
params []string
|
||||
headers map[string][]string
|
||||
}
|
||||
type expected struct {
|
||||
body string
|
||||
}
|
||||
tests := []struct {
|
||||
name string
|
||||
args args
|
||||
@ -249,8 +246,6 @@ ASN Organization:
|
||||
|
||||
Header1: one
|
||||
Host: test
|
||||
X-Real-Ip: 81.2.69.192
|
||||
X-Real-Port: 1001
|
||||
`
|
||||
_, _ = setting.Setup(
|
||||
[]string{
|
||||
|
Reference in New Issue
Block a user