111
This commit is contained in:
parent
f45631b205
commit
3a38632505
@ -98,7 +98,7 @@ const server = http.createServer(async (req, res) => {
|
||||
}
|
||||
|
||||
// 检查第一个路径只能是 attachment,avatar,endpoint,go,bbs,www
|
||||
if (!['attachment', 'avatar', 'go', 'bbs', 'www'].includes(reqPath)) {
|
||||
if (!['attachment', 'avatar', 'go', 'bbs', 'www', 'url'].includes(reqPath)) {
|
||||
res.writeHead(404, { 'Content-Type': 'text/plain' });
|
||||
res.end('Not Found');
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user