╭ changed ────╮ │src/serve.zig│ ╰─────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────╮ │11 ssh_listen: []const u8 = "127.0.0.1:8022", │ │12 wui_listen: []const u8 = "127.0.0.1:8000", │ │13 data_dir: []const u8 = ".", │ │14 + │ │15 + // the port from `wui_listen`, for the TUI footer's url. │ │16 + pub fn wuiPort(self: Options) !u16 { │ │17 + return (try parseListenAddress(self.wui_listen)).port;│ │18 + } │ │19 }; │ │20 │ │21 const ListenAddress = struct { │ ╰──────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 99 const ssh_session_handler = serve_ssh.SessionHandler{ │ │100 .admin_repo_path = admin_repo_path, │ │101 .repo_root_path = repo_root_path, │ │102 + .wui_port = wui_listen_address.port, │ │103 .err = err, │ │104 }; │ │105 serve_ssh.runListener(io, allocator, &host_key, &ssh_session_handler, &ssh_server, &tasks, err);│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯