[pve-devel] [PATCH pve-installer] tui: read correct input for DNS server address

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Jun 21 12:48:58 CEST 2023


Am 21/06/2023 um 12:46 schrieb Stefan Hanreich:
> Currently the TUI installer reads the value for the DNS server from
> the field for the gateway.
> 

Many thanks for the patch-as-report approach, but Christoph already provided
this one after I noticed it off-list, and I pushed that (looks exactly the same)
already; sorry!


> Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
> ---
>  proxmox-tui-installer/src/main.rs | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/proxmox-tui-installer/src/main.rs b/proxmox-tui-installer/src/main.rs
> index 510807a..77818e7 100644
> --- a/proxmox-tui-installer/src/main.rs
> +++ b/proxmox-tui-installer/src/main.rs
> @@ -540,7 +540,7 @@ fn network_dialog(siv: &mut Cursive) -> InstallerView {
>                      .map_err(|err| err.to_string())?;
>  
>                  let dns_server = view
> -                    .get_value::<EditView, _>(3)
> +                    .get_value::<EditView, _>(4)
>                      .ok_or("failed to retrieve DNS server address")?
>                      .parse::<IpAddr>()
>                      .map_err(|err| err.to_string())?;






More information about the pve-devel mailing list