Browse Source

fixup: lint errors

pull/781/head
Philip H. 3 years ago
committed by GitHub
parent
commit
764ad2777d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/lib/Server.js

2
src/lib/Server.js

@ -166,7 +166,7 @@ module.exports = class Server {
const { address } = req.body;
return WireGuard.updateClientAddress({ clientId, address });
}))
.put('/api/wireguard/client/:clientId/address6', Util.promisify(async (req) => {
.put('/api/wireguard/client/:clientId/address6', Util.promisify(async (req, res) => {
const { clientId } = req.params;
if (clientId === '__proto__' || clientId === 'constructor' || clientId === 'prototype') {
res.end(403);

Loading…
Cancel
Save