Merge 01e15de314 into 3a85cb1833
This commit is contained in:
commit
5e408a66a7
@ -418,7 +418,7 @@ export async function startCanvasHost(opts: CanvasHostServerOpts): Promise<Canva
|
|||||||
}));
|
}));
|
||||||
const ownsHandler = opts.ownsHandler ?? opts.handler === undefined;
|
const ownsHandler = opts.ownsHandler ?? opts.handler === undefined;
|
||||||
|
|
||||||
const bindHost = opts.listenHost?.trim() || "0.0.0.0";
|
const bindHost = opts.listenHost?.trim() || "127.0.0.1";
|
||||||
const server: Server = http.createServer((req, res) => {
|
const server: Server = http.createServer((req, res) => {
|
||||||
if (String(req.headers.upgrade ?? "").toLowerCase() === "websocket") return;
|
if (String(req.headers.upgrade ?? "").toLowerCase() === "websocket") return;
|
||||||
void (async () => {
|
void (async () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user