Skip to content

Commit 3919304

Browse files
committed
accept port argument in bridge script
1 parent 4fa4df5 commit 3919304

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/tcp_to_stdio_bridge.exs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,10 @@ defmodule TcpToStdioBridge do
7979
end
8080

8181
# Start the bridge
82-
TcpToStdioBridge.start()
82+
port =
83+
case System.argv() do
84+
[port_str | _] -> String.to_integer(port_str)
85+
[] -> 3798
86+
end
87+
88+
TcpToStdioBridge.start("localhost", port)

0 commit comments

Comments
 (0)