mirror of
https://github.com/LamGC/quickly-conf-sshd.git
synced 2025-04-30 06:37:35 +00:00
稍微漏了点什么
This commit is contained in:
parent
347dbe2135
commit
0d4e1368fd
@ -83,7 +83,7 @@ export default {
|
|||||||
} else if (pathname === "/") {
|
} else if (pathname === "/") {
|
||||||
const userAgent = request.headers.get("User-Agent");
|
const userAgent = request.headers.get("User-Agent");
|
||||||
if (userAgent != null && userAgent.match(/curl|libcurl/) !== null) {
|
if (userAgent != null && userAgent.match(/curl|libcurl/) !== null) {
|
||||||
return await sendScriptContent();
|
return await sendScriptContent(baseUrl);
|
||||||
} else {
|
} else {
|
||||||
return new Response("", {
|
return new Response("", {
|
||||||
status: 301,
|
status: 301,
|
||||||
@ -94,7 +94,7 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else if (pathname === "/script.sh") {
|
} else if (pathname === "/script.sh") {
|
||||||
return await sendScriptContent();
|
return await sendScriptContent(baseUrl);
|
||||||
} else {
|
} else {
|
||||||
return new Response("Not found.", {
|
return new Response("Not found.", {
|
||||||
status: 404,
|
status: 404,
|
||||||
|
Loading…
Reference in New Issue
Block a user