From 83eb3449f31d203277f8b03c63580421eef2a511 Mon Sep 17 00:00:00 2001 From: 50h100a Date: Sun, 20 Aug 2023 00:30:34 -0400 Subject: [PATCH] localhost -> 127.0.0.1. Thank you websockets, very cool. --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 68940201c..5f6841bfd 100644 --- a/server.js +++ b/server.js @@ -599,7 +599,7 @@ app.post("/generate_textgenerationwebui", jsonParser, async function (request, r }); async function* readWebsocket() { - const streamingUrl = request.header('X-Streaming-URL'); + const streamingUrl = request.header('X-Streaming-URL').replace("localhost", "127.0.0.1"); const websocket = new WebSocket(streamingUrl); websocket.on('open', async function () {