@decentnetwork/lan 0.1.94 → 0.1.95

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.
Binary file
Binary file
Binary file
Binary file
package/dist/cli/index.js CHANGED
@@ -142,10 +142,16 @@ async function main() {
142
142
  })
143
143
  .command("ui", "Start the local Friend UI web page (friends list, accept/reject requests, add friend)", (y) => y
144
144
  .option("port", { type: "number", default: 8765, describe: "Local listen port" })
145
- .option("listen", { type: "string", default: "127.0.0.1", describe: "Listen host" })
145
+ .option("host", {
146
+ type: "string",
147
+ default: "127.0.0.1",
148
+ // `--listen` kept as a hidden back-compat alias (older docs/commands).
149
+ alias: "listen",
150
+ describe: "Bind address (use 0.0.0.0 to reach it from other devices on your LAN)",
151
+ })
146
152
  .option("dora-dir", { type: "string", describe: "If this node runs a dora server, its data-dir (to show allocations)" })
147
153
  .option("config-dir", { type: "string" }), async (argv) => {
148
- await cmdUi({ port: argv.port, listen: argv.listen, doraDir: argv["dora-dir"], configDir: argv["config-dir"] });
154
+ await cmdUi({ port: argv.port, listen: argv.host ?? argv.listen, doraDir: argv["dora-dir"], configDir: argv["config-dir"] });
149
155
  })
150
156
  // Tell the running daemon to re-exec itself with its original argv.
151
157
  // The daemon inherits its own uid (root if it was launched as root)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decentnetwork/lan",
3
- "version": "0.1.94",
3
+ "version": "0.1.95",
4
4
  "description": "Private virtual LAN for self-hosted services and AI agents, built on Elastos Carrier. NAT-traversal, name service, ACL, all over a peer-to-peer mesh — no public IP required.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",