Skip to content

Commit

Permalink
fix(contact): correct ip address header
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Jan 25, 2024
1 parent fc7ccb9 commit c3288c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/api/contact.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const sendMail = async (event: H3Event) => {
`Email address: ${body.emailAddress}`,
`Name: ${body.name}`,
`Message: ${body.message}`,
`IP: ${event.node.req.headers['x-forwarded-for']}`,
`IP: ${event.node.req.headers['x-real-ip']}`,
`Timestamp: ${new Date().toISOString()}`,
].join('\n'),
subject: 'Nachricht per Kontaktformular',
Expand Down

0 comments on commit c3288c6

Please sign in to comment.