mirror of
https://github.com/backnotprop/plannotator.git
synced 2026-09-14 14:17:26 +08:00
Bind local Plannotator servers to loopback by default (#533)
* Harden review agent job launch endpoints * Stabilize agent job auth tests * Drop review agent job token gating * Align useAgentJobs with upstream formatting * Allow remote sessions to bind all interfaces
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
* PLANNOTATOR_PORT - Fixed port to use (default: random locally, 19432 for remote)
|
||||
*/
|
||||
|
||||
import { isRemoteSession, getServerPort } from "./remote";
|
||||
import { isRemoteSession, getServerHostname, getServerPort } from "./remote";
|
||||
import type { Origin } from "@plannotator/shared/agents";
|
||||
import { type DiffType, type GitContext, runVcsDiff, getVcsFileContentsForDiff, canStageFiles, stageFile, unstageFile, resolveVcsCwd, validateFilePath } from "./vcs";
|
||||
import { getRepoInfo } from "./repo";
|
||||
@@ -348,6 +348,7 @@ export async function startReviewServer(
|
||||
for (let attempt = 1; attempt <= MAX_RETRIES; attempt++) {
|
||||
try {
|
||||
server = Bun.serve({
|
||||
hostname: getServerHostname(),
|
||||
port: configuredPort,
|
||||
|
||||
async fetch(req, server) {
|
||||
|
||||
Reference in New Issue
Block a user