[pve-devel] [PATCH pve-installer] tui: read correct input for DNS server address
Stefan Hanreich
s.hanreich at proxmox.com
Wed Jun 21 12:46:03 CEST 2023
Currently the TUI installer reads the value for the DNS server from
the field for the gateway.
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())?;
--
2.39.2
More information about the pve-devel
mailing list