mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-21 07:16:17 -05:00
fix: log the number of gateways found in portal config
This commit is contained in:
1 file changed
+2
@@ -270,6 +270,8 @@ fn parse_portal_config(server: &str, cred: &Credential, root: Element) -> anyhow
|
|||||||
|
|
||||||
if gateways.is_empty() {
|
if gateways.is_empty() {
|
||||||
gateways.push(Gateway::new(server.to_string(), server.to_string()));
|
gateways.push(Gateway::new(server.to_string(), server.to_string()));
|
||||||
|
} else {
|
||||||
|
info!("Found {} gateways in portal config", gateways.len());
|
||||||
}
|
}
|
||||||
|
|
||||||
let version = root.descendant_text("version").map(|s| s.to_string());
|
let version = root.descendant_text("version").map(|s| s.to_string());
|
||||||
|
|||||||
Reference in new issue
Block a user