Added helpful comment

master
Cloud9 GF4 wgapi 2021-10-23 15:49:54 -06:00
parent 6fe01eb1dc
commit b5580ddb92
1 changed files with 2 additions and 0 deletions

View File

@ -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`)