Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make host:port for tracer configurable #161

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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