Skip to main content

resolve_bridge_host

Function resolve_bridge_host 

Source
pub fn resolve_bridge_host(
    cli_host: Option<String>,
    config: &BhtuneConfig,
) -> String
Expand description

Resolve the opcda-bridge gateway address with CLI flag > env var > config file > default precedence. The env var is already folded into cli_host by clap’s env attribute on TuneArgs::bridge_host/OpcCommand’s per-variant bridge_host.