Explorar el Código

Merge pull request #6287 from PCL-Community/fix#5252

fix(ModLaunch): 证书不信任导致无法登录皮肤站
龙腾猫跃 hace 1 año
padre
commit
9b49235cda
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      Plain Craft Launcher 2/Modules/Minecraft/ModLaunch.vb

+ 2 - 0
Plain Craft Launcher 2/Modules/Minecraft/ModLaunch.vb

@@ -1424,6 +1424,7 @@ Retry:
         End If
         End If
         'Authlib-Injector
         'Authlib-Injector
         If McLoginLoader.Output.Type = "Auth" Then
         If McLoginLoader.Output.Type = "Auth" Then
+            If (McLaunchJavaSelected.VersionCode >= 6) Then DataList.Add("-Djavax.net.ssl.trustStoreType=WINDOWS-ROOT")
             Dim Server As String = If(McLoginLoader.Input.Type = McLoginType.Legacy,
             Dim Server As String = If(McLoginLoader.Input.Type = McLoginType.Legacy,
                 "http://hiperauth.tech/api/yggdrasil-hiper/", 'HiPer 登录
                 "http://hiperauth.tech/api/yggdrasil-hiper/", 'HiPer 登录
                 Setup.Get("VersionServerAuthServer", McVersionCurrent))
                 Setup.Get("VersionServerAuthServer", McVersionCurrent))
@@ -1493,6 +1494,7 @@ NextVersion:
         End If
         End If
         'Authlib-Injector
         'Authlib-Injector
         If McLoginLoader.Output.Type = "Auth" Then
         If McLoginLoader.Output.Type = "Auth" Then
+            If (McLaunchJavaSelected.VersionCode >= 6) Then DataList.Add("-Djavax.net.ssl.trustStoreType=WINDOWS-ROOT")
             Dim Server As String = If(McLoginLoader.Input.Type = McLoginType.Legacy,
             Dim Server As String = If(McLoginLoader.Input.Type = McLoginType.Legacy,
                 "http://hiperauth.tech/api/yggdrasil-hiper/", 'HiPer 登录
                 "http://hiperauth.tech/api/yggdrasil-hiper/", 'HiPer 登录
                 Setup.Get("VersionServerAuthServer", Version:=McVersionCurrent))
                 Setup.Get("VersionServerAuthServer", Version:=McVersionCurrent))