diff options
author | Smolyakov <[email protected]> | 2019-09-01 15:36:42 +0300 |
---|---|---|
committer | Smolyakov <[email protected]> | 2019-09-01 15:36:42 +0300 |
commit | 488a9774636ece92e730a41092403410910d566f (patch) | |
tree | ed1138e5f2af51089650f16fde471738ca06565e /service/http/handler_test.go | |
parent | 49e002c11e5cc915d80efa58611f4c4a72de7bb2 (diff) |
Use last IP address from X-Forwarded-For without validation of trusty
Diffstat (limited to 'service/http/handler_test.go')
-rw-r--r-- | service/http/handler_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/http/handler_test.go b/service/http/handler_test.go index 95077da6..52386abb 100644 --- a/service/http/handler_test.go +++ b/service/http/handler_test.go @@ -1345,7 +1345,7 @@ func TestHandler_XForwardedFor(t *testing.T) { assert.NoError(t, err) assert.Equal(t, 200, r.StatusCode) - assert.Equal(t, "200.0.0.1", body) + assert.Equal(t, "101.0.0.1", body) } func BenchmarkHandler_Listen_Echo(b *testing.B) { |