Skip to content

Commit

Permalink
add addressType that returns 'unknown'
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuaki640 committed Jul 8, 2024
1 parent 4c401da commit 6760e54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/adapter/lambda-edge/conninfo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ describe('getConnInfo', () => {
const info = getConnInfo(c)

expect(info.remote.address).toBe(clientIp)
expect(info.remote.addressType).toBe('unknown')
})
})
1 change: 1 addition & 0 deletions src/adapter/lambda-edge/conninfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ type Env = {
export const getConnInfo: GetConnInfo = (c: Context<Env>) => ({
remote: {
address: c.env.event.Records[0].cf.request.clientIp,
addressType: 'unknown',
},
})

0 comments on commit 6760e54

Please sign in to comment.