Skip to content

Commit

Permalink
make the code compliant with legacy behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieusieben committed Feb 24, 2025
1 parent 2af6887 commit 8777b73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/pds/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,9 @@ export class AppContext {
dpopSecret: secrets.dpopSecret,
customization: cfg.oauth.provider.customization,
safeFetch,
// Assumes this server runs behind a proxy
// @TODO: Make this configurable
trustProxy: (addr: string, i: number) => i >= 1,
// @TODO: Make this configurable. The legacy implementation used to
// blindly trust the X-Forwarded-For header.
trustProxy: (_addr: string, _i: number) => true,
})
: undefined

Expand Down

0 comments on commit 8777b73

Please sign in to comment.