Fix launcher verification session check and socket IP resolution
This commit is contained in:
1 parent
522e3a5717
commit
c7aa563dac
6 files changed
+185
-29
No files matched your search
@@ -259,9 +259,16 @@ pub fn panel_token(state: &AppState) -> Option<String> {
|
||||
let panel = state.panel_url()?;
|
||||
let accounts = state.accounts.read().unwrap();
|
||||
let active = accounts.active()?;
|
||||
if active.kind != "panel" || active.panel_url.as_deref() != Some(panel.as_str()) {
|
||||
if active.kind != "panel" {
|
||||
return None;
|
||||
}
|
||||
if let Some(active_url) = &active.panel_url {
|
||||
let a = active_url.trim_end_matches('/');
|
||||
let p = panel.trim_end_matches('/');
|
||||
if !a.eq_ignore_ascii_case(p) {
|
||||
return None;
|
||||
}
|
||||
}
|
||||
state.secrets.get(&active.id).panel_token
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user