Skip to content

Commit f19b29a

Browse files
committed
bridge: allow BRIDGE_API_PORT=0 for test ephemeral binds
1 parent 22addf1 commit f19b29a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

slack-bridge/broker-bridge.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function clampInt(value, min, max, fallback) {
3737
return Math.min(max, Math.max(min, parsed));
3838
}
3939

40-
const API_PORT = clampInt(process.env.BRIDGE_API_PORT || "7890", 1, 65535, 7890);
40+
const API_PORT = clampInt(process.env.BRIDGE_API_PORT || "7890", 0, 65535, 7890);
4141
const POLL_INTERVAL_MS = clampInt(process.env.SLACK_BROKER_POLL_INTERVAL_MS || "3000", 0, 60_000, 3000);
4242
const MAX_MESSAGES = clampInt(process.env.SLACK_BROKER_MAX_MESSAGES || "10", 1, 100, 10);
4343
const MAX_WAIT_SECONDS = 25;

0 commit comments

Comments
 (0)