From b5580ddb920bcb529fc3b1abbcd6fa9aedde23dc Mon Sep 17 00:00:00 2001 From: Cloud9 GF4 wgapi Date: Sat, 23 Oct 2021 15:49:54 -0600 Subject: [PATCH] Added helpful comment --- app/add.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/add.js b/app/add.js index eb1df61..707aa84 100644 --- a/app/add.js +++ b/app/add.js @@ -22,6 +22,8 @@ const dns_key = `hmac-sha512:wgapi-${env.LOCAL_SERVER}:${env.DNS_KEY}` let config_queue = [] module.exports = async (req, res) => { + + // Parse, sanitize, and validate hostname const new_hostname = req.query['name'].trim().toLowerCase() if (!new_hostname) { console.log(`New peer request from ${req.requester} didn't provide a hostname`)