diff options
| author | Li Zhineng <[email protected]> | 2025-07-02 20:42:18 +0800 |
|---|---|---|
| committer | Li Zhineng <[email protected]> | 2025-07-02 20:42:18 +0800 |
| commit | 40085a4679d88d2c0a141b95ee6818ac7420dae3 (patch) | |
| tree | a91673aba254eab609f086d203fd1fe5c90c36bb /server.mjs | |
| parent | 4abaac6c5df21a68d1ace7bcaee1e016a9edd90f (diff) | |
| download | server-40085a4679d88d2c0a141b95ee6818ac7420dae3.tar.gz server-40085a4679d88d2c0a141b95ee6818ac7420dae3.zip | |
improve mac and key checking
Diffstat (limited to 'server.mjs')
| -rw-r--r-- | server.mjs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -46,7 +46,8 @@ const eagleGenIdController = (req, res) => { const params = new URLSearchParams(query) const { mac, key } = JSON.parse(params.get('params') || '{}') - if (mac === undefined || key === undefined) { + if (mac === undefined || mac === null + || key === undefined || key === null) { res.writeHead(400, { 'Content-Type': 'application/json' }) res.end('{}\n') return |
