要怎么填写,下面我在域名解析那写的代码:
async function handleRequest(request) {
const url = new URL(request.url)
url.host = “这个地址写sealos给的内网地址吗?”
return fetch(url, { headers: request.headers, method: request.method, body: request.body })
}
addEventListener(“fetch”, (event) => {
event.respondWith(handleRequest(event.request))
})