]> git.proxmox.com Git - pve-installer.git/commit
tui: fix search domain parsing from runtime environment info
authorChristoph Heiss <c.heiss@proxmox.com>
Mon, 21 Aug 2023 08:53:59 +0000 (10:53 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 23 Aug 2023 08:38:14 +0000 (10:38 +0200)
commitc733cb3b26a9a8328ebd8ff2f20d34609d108ebc
treee48113453d680b9220ad8bb24359d68c2ae8dc5b
parentfea97303fd2144fc17bfdc9f2be7b1f3673e8952
tui: fix search domain parsing from runtime environment info

Commit 55dc67c ("tui: fix FQDN validation") mostly fixed FQDN
validation, but missed a case when the search domain only has one
component.

As Fqdn::from() requires at least two components to pass validation, the
search domain parsing from the runtime environment info provided by the
low-level installer failed. This resulted in that the network dialog
defaulted to "<product>.example.invalid" as FQDN, instead of
"<product>.<searchdomain>" as it should.

Fixes: 55dc67c ("tui: fix FQDN validation")
Reported-by: Aaron Lauterer <a.lauterer@proxmox.com>
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-tui-installer/src/options.rs
proxmox-tui-installer/src/setup.rs