feat:移除了弹窗,服务器添加sls
This commit is contained in:
commit
6a295f9a7a
4082 files changed
+1322534
No files matched your search
@@ -0,0 +1,28 @@
|
||||
export const FALLEN_AUTH_PROXY_BLOG_URL =
|
||||
'https://blog.fallenbreath.me/zh-CN/2025/minecraft-service-proxy'
|
||||
|
||||
export const FALLEN_AUTH_PROXY_JAVA_ARGS = [
|
||||
'-Dminecraft.api.auth.host=https://auth.msp.fallenbreath.me',
|
||||
'-Dminecraft.api.account.host=https://account.msp.fallenbreath.me',
|
||||
'-Dminecraft.api.session.host=https://session.msp.fallenbreath.me',
|
||||
'-Dminecraft.api.services.host=https://services.msp.fallenbreath.me',
|
||||
'-Dminecraft.api.profiles.host=https://profiles.msp.fallenbreath.me',
|
||||
]
|
||||
|
||||
export const FALLEN_AUTH_PROXY_JAVA_ARGS_STRING = FALLEN_AUTH_PROXY_JAVA_ARGS.join(' ')
|
||||
|
||||
export const AUTO_GC_PRESET_ARG = '@axolotl:gc:auto'
|
||||
|
||||
const FALLEN_AUTH_PROXY_ARG_SET = new Set(FALLEN_AUTH_PROXY_JAVA_ARGS)
|
||||
|
||||
export function removeFallenAuthProxyArgs(args: string[]): string[] {
|
||||
return args.filter((arg) => !FALLEN_AUTH_PROXY_ARG_SET.has(arg))
|
||||
}
|
||||
|
||||
export function ensureFallenAuthProxyArgs(args: string[]): string[] {
|
||||
return [...FALLEN_AUTH_PROXY_JAVA_ARGS, ...removeFallenAuthProxyArgs(args)]
|
||||
}
|
||||
|
||||
export function hasFallenAuthProxyArgs(args: string[]): boolean {
|
||||
return FALLEN_AUTH_PROXY_JAVA_ARGS.every((arg) => args.includes(arg))
|
||||
}
|
||||
Reference in new issue
Block a user