Skip to main content

DEFAULT_HTTP

Constant DEFAULT_HTTP 

Source
pub const DEFAULT_HTTP: &str = "127.0.0.1:7788";
Expand description

Default console HTTP bind address (used for both serve and port reporting).

Why: A single constant keeps the serve default and the port verb’s fallback in lock-step so tctl never discovers a port the console would not actually bind to. What: 127.0.0.1:7788 — the canonical localhost console address. Test: test_resolve_reported_addr_default asserts the port verb falls back to this value’s host/port when no discovery file is present.