@wolpertingerlabs/drawlatch 1.0.0-alpha.9.2 → 1.0.0-alpha.9.3
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.
- package/bin/drawlatch.js +7 -2
- package/package.json +1 -1
package/bin/drawlatch.js
CHANGED
|
@@ -885,11 +885,16 @@ function cleanPidFile() {
|
|
|
885
885
|
|
|
886
886
|
// ── Health check utilities ────────────────────────────────────────
|
|
887
887
|
|
|
888
|
+
/** Resolve the host for client connections — 0.0.0.0 is a bind address, not connectable. */
|
|
889
|
+
function connectHost(host) {
|
|
890
|
+
return host === "0.0.0.0" ? "127.0.0.1" : host;
|
|
891
|
+
}
|
|
892
|
+
|
|
888
893
|
async function healthCheck(host, port) {
|
|
889
894
|
try {
|
|
890
895
|
const controller = new AbortController();
|
|
891
896
|
const timeout = setTimeout(() => controller.abort(), 3000);
|
|
892
|
-
const res = await fetch(`http://${host}:${port}/health`, {
|
|
897
|
+
const res = await fetch(`http://${connectHost(host)}:${port}/health`, {
|
|
893
898
|
signal: controller.signal,
|
|
894
899
|
});
|
|
895
900
|
clearTimeout(timeout);
|
|
@@ -903,7 +908,7 @@ async function healthCheckFull(host, port) {
|
|
|
903
908
|
try {
|
|
904
909
|
const controller = new AbortController();
|
|
905
910
|
const timeout = setTimeout(() => controller.abort(), 3000);
|
|
906
|
-
const res = await fetch(`http://${host}:${port}/health`, {
|
|
911
|
+
const res = await fetch(`http://${connectHost(host)}:${port}/health`, {
|
|
907
912
|
signal: controller.signal,
|
|
908
913
|
});
|
|
909
914
|
clearTimeout(timeout);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wolpertingerlabs/drawlatch",
|
|
3
|
-
"version": "1.0.0-alpha.9.
|
|
3
|
+
"version": "1.0.0-alpha.9.3",
|
|
4
4
|
"description": "Encrypted MCP proxy with mutual authentication. Local MCP server forwards requests through an encrypted channel to a remote secrets-holding server.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/mcp/server.js",
|