diff options
| author | Aram Drevekenin <aram@poor.dev> | 2026-03-09 16:02:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-09 16:02:43 +0100 |
| commit | 780784ab761425386df7a16d06337b31b0479847 (patch) | |
| tree | 381914054e350e8e4427fb3dc8477a82b30c2f4e /src/main.rs | |
| parent | Update CHANGELOG.md (diff) | |
| download | sl0ppij-780784ab761425386df7a16d06337b31b0479847.tar.gz sl0ppij-780784ab761425386df7a16d06337b31b0479847.tar.xz sl0ppij-780784ab761425386df7a16d06337b31b0479847.zip | |
allow specifying ip/port with the zellij web --status cli (#4825)
* allow specifying ip/port with the zellij web --status cli
* add pr
Diffstat (limited to '')
| -rw-r--r-- | src/main.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index ddca0f27..0ca0daf1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -304,8 +304,14 @@ fn main() { }, } } else if web_opts.status { - let config_options = commands::get_config_options_from_cli_args(&opts) + let mut config_options = commands::get_config_options_from_cli_args(&opts) .expect("Can't find config options"); + if let Some(ip) = web_opts.ip { + config_options.web_server_ip = Some(ip); + } + if let Some(port) = web_opts.port { + config_options.web_server_port = Some(port); + } let web_server_base_url = web_server_base_url_from_config(config_options); match commands::web_server_status(&web_server_base_url, web_opts.timeout) { Ok(version) => { |
