@mindstudio-ai/local-model-tunnel 0.5.63 → 0.5.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ import {
7
7
  setProviderInstallPath,
8
8
  submitProgress,
9
9
  submitResult
10
- } from "./chunk-7CY3GAYS.js";
10
+ } from "./chunk-DE6EFRG6.js";
11
11
 
12
12
  // src/providers/ollama/index.ts
13
13
  import { Ollama } from "ollama";
@@ -1395,4 +1395,4 @@ export {
1395
1395
  requestEvents,
1396
1396
  TunnelRunner
1397
1397
  };
1398
- //# sourceMappingURL=chunk-W5JMAUEP.js.map
1398
+ //# sourceMappingURL=chunk-745MM3DC.js.map
@@ -2313,6 +2313,13 @@ function handleBatchPost(req, res) {
2313
2313
  });
2314
2314
  }
2315
2315
  function handlePresence(req, res, sseConnections) {
2316
+ const remoteAddr = req.socket.remoteAddress ?? "";
2317
+ const isLoopback = remoteAddr === "::1" || /^127\./.test(remoteAddr) || /^::ffff:127\./i.test(remoteAddr);
2318
+ if (isLoopback) {
2319
+ res.writeHead(204);
2320
+ res.end();
2321
+ return;
2322
+ }
2316
2323
  res.writeHead(200, {
2317
2324
  "Content-Type": "text/event-stream",
2318
2325
  "Cache-Control": "no-cache",
@@ -3691,4 +3698,4 @@ export {
3691
3698
  watchConfigFile,
3692
3699
  watchManifestFiles
3693
3700
  };
3694
- //# sourceMappingURL=chunk-7CY3GAYS.js.map
3701
+ //# sourceMappingURL=chunk-DE6EFRG6.js.map