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