Skip to content

Commit

Permalink
Add some wg-easy logging
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon authored and fgeck committed Nov 21, 2024
1 parent 199a196 commit 88d231f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/widgets/wgeasy/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ export default async function wgeasyProxyHandler(req, res) {
const parsedData = JSON.parse(data);

if (parsedData.statusCode > 400) {
<<<<<<< HEAD
cache.del(`${sessionSIDCacheKey}.${service}`);
=======
>>>>>>> 71b24bee (Add some wg-easy logging)
return res
.status(parsedData.statusCode)
.json({ error: { message: "Error communicating with Wg-Easy", data: parsedData } });
Expand Down

0 comments on commit 88d231f

Please sign in to comment.