Skip to content

Conversation

halseth
Copy link

@halseth halseth commented Apr 26, 2023

This is useful especially when running inside containers.

Usage:

$ cairo-run --program=program_compiled.json --tracer 0.0.0.0:8100

Fixes #126


This change is Reviewable

We make --host and --port new CLI arguments, such that they can be
specified at startup.

To ensure backwards compatibility, we default to the previous values
localhost:8100 if the flags are not provided.
We make the --tracer flag take an optional argument, letting us
configure the host:port to serve on at startup.

We default to localhost:8100 if the optional argument is not set, and as
previously don't start the tracer in case the --tracer flag is not set
at all.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow user to choose ip and port in cairo-run --tracer

1 participant