Skip to content

Commit

Permalink
Update ctx.md ip documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneWerner87 authored Mar 14, 2023
1 parent 634f163 commit 0dee42a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/api/ctx.md
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,14 @@ app.Get("/", func(c *fiber.Ctx) error {
})
```

When registering the proxy request header in the fiber app, the ip address of the header is returned [(Fiber configuration)](fiber.md#config)

```go
app := fiber.New(fiber.Config{
ProxyHeader: fiber.HeaderXForwardedFor,
})
```

## IPs

Returns an array of IP addresses specified in the [X-Forwarded-For](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For) request header.
Expand Down

0 comments on commit 0dee42a

Please sign in to comment.