feat: refine StarLight skin integration
Some checks failed
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled

This commit is contained in:
2026-09-14 11:29:48 +08:00
parent 67638df07f
commit 5d181ed8cc
15 changed files with 1105 additions and 615 deletions

View File

@ -14,16 +14,13 @@ use crate::state::{
};
pub use crate::state::{MinecraftDeviceLoginFlow, MinecraftDeviceLoginPoll};
use crate::util::fetch::INSECURE_REQWEST_CLIENT;
use crate::util::mojang::{mojang_service_url, should_use_mojang_mirror};
const STARLIGHT_SESSION_SERVER_URL: &str = "https://skin.starlight.cool/yggdrasil/sessionserver/session/minecraft/hasJoined";
#[tracing::instrument]
pub async fn check_reachable() -> crate::Result<()> {
let url = mojang_service_url(
"https://sessionserver.mojang.com/session/minecraft/hasJoined",
should_use_mojang_mirror(),
);
let resp = INSECURE_REQWEST_CLIENT
.get(url.as_ref())
.get(STARLIGHT_SESSION_SERVER_URL)
.timeout(Duration::from_secs(5))
.send()
.await?;