@townco/agent 0.1.75 → 0.1.77

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.
@@ -609,12 +609,10 @@ export function makeHttpTransport(agent, agentDir, agentName) {
609
609
  });
610
610
  const port = Number.parseInt(process.env.PORT || "3100", 10);
611
611
  logger.info("Starting HTTP server", { port });
612
- Bun.serve({
613
- fetch: app.fetch,
614
- port,
615
- });
612
+ const hostname = Bun.env.BIND_HOST || "localhost";
613
+ Bun.serve({ fetch: app.fetch, hostname, port });
616
614
  logger.info("HTTP server listening", {
617
- url: `http://localhost:${port}`,
615
+ url: `http://${hostname}:${port}`,
618
616
  port,
619
617
  });
620
618
  }