Signed-off-by: Aaron Lauterer <a.laute...@proxmox.com> --- proxmox-fetch-answer/src/fetch_plugins/http.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/proxmox-fetch-answer/src/fetch_plugins/http.rs b/proxmox-fetch-answer/src/fetch_plugins/http.rs index b5550fe..0d66b9e 100644 --- a/proxmox-fetch-answer/src/fetch_plugins/http.rs +++ b/proxmox-fetch-answer/src/fetch_plugins/http.rs @@ -142,6 +142,7 @@ impl FetchFromHTTP { /// Tries to fetch answer URL and SSL fingerprint info from DHCP options fn fetch_dhcp(mut fingerprint: Option<String>) -> Result<(String, Option<String>)> { + info!("Checking DHCP options."); let leases = fs::read_to_string(DHCP_LEASE_FILE)?; let mut answer_url: Option<String> = None; @@ -160,9 +161,16 @@ impl FetchFromHTTP { let answer_url = match answer_url { None => bail!("No DHCP option found for fetch URL."), - Some(url) => url, + Some(url) => { + info!("Found URL for answer in DHCP option: '{url}'"); + url + } }; + if let Some(fp) = fingerprint.clone() { + info!("Found SSL Fingerprint via DHCP: '{fp}'"); + } + Ok((answer_url, fingerprint)) } -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel