mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
update default browser
This commit is contained in:
parent
222fe26cea
commit
6542d677a9
@ -17,9 +17,14 @@ impl BrowserAuthenticator<'_> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn new_with_browser<'a>(auth_request: &'a str, browser: &'a str) -> BrowserAuthenticator<'a> {
|
pub fn new_with_browser<'a>(auth_request: &'a str, browser: &'a str) -> BrowserAuthenticator<'a> {
|
||||||
|
let browser = browser.trim();
|
||||||
BrowserAuthenticator {
|
BrowserAuthenticator {
|
||||||
auth_request,
|
auth_request,
|
||||||
browser: if browser == "default" { None } else { Some(browser) },
|
browser: if browser.is_empty() || browser == "default" {
|
||||||
|
None
|
||||||
|
} else {
|
||||||
|
Some(browser)
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user