Skip to content

Commit

Permalink
Only listen on localhost by default to avoid firewall stuff and secur…
Browse files Browse the repository at this point in the history
…ity stuff
  • Loading branch information
abrenneke committed Oct 18, 2023
1 parent 1d4b6a6 commit b2bd69d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/node/src/debugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ export function startDebuggerServer(
dynamicGraphRun?: DynamicGraphRun;
allowGraphUpload?: boolean;
throttlePartialOutputs?: number;
host?: string;
} = {},
): RivetDebuggerServer {
const { port = 21888, throttlePartialOutputs = 100 } = options;
const { port = 21888, throttlePartialOutputs = 100, host = 'localhost' } = options;

const server = options.server ?? new WebSocketServer({ port });
const server = options.server ?? new WebSocketServer({ port, host });

const emitter = new Emittery<DebuggerEvents>();

Expand Down

0 comments on commit b2bd69d

Please sign in to comment.