MCCTeam / Minecraft-Console-Client

Lightweight console for Minecraft chat and automated scripts
https://mccteam.github.io
Other
1.67k stars 402 forks source link

[BUG] The Yggdrasil verification station for the second-level domain name will show a Network Error, such as myskin.good.com #2793

Open lizheyo77 opened 2 months ago

lizheyo77 commented 2 months ago

Prerequisites

Minecraft Version

1.21.1

Console Client Version

build 275

Expected Behavior

For example, use the secondary domain myskin.good.com to use external login

Actual Behavior

The Yggdrasil verification station for the second-level domain name will show a Network Error, such as myskin.good.com

Steps to Reproduce the bug

  1. yes
  2. yes
  3. yes

Attach screenshot here (If applicable)

No response

Anythings that could help diagnosing the bug

No response

Device

None

Operating System

Windows

Server Address (If applicable)

No response

yanhy2000 commented 4 days ago

我也遇到了这种情况,不过我试了一下有方法可以解决

如果你的配置文件是如下的情况(我最开始是这样设置,可以复现网络错误):

AccountType = "yggdrasil"                   # 帐户类型:mojang 或是 microsoft 或是 yggdrasil。此项设置也会影响交互式登录。
Method = "mcc"                              # 微软账户的登录方式:mcc 或是 browser(手动在网页上登录)。
AuthServer = { Host = "https://skin.xxx.xxx/api/yggdrasil", Port = 443 }      # Yggdrasil API 认证服务器的域名与端口。

控制台日志:

Minecraft Console Client v1.20.4 - for MC 1.4.6 to 1.20.4 - Github.com/MCCTeam
GitHub build 276, built on 2024-09-06 from commit 27e6643
正在解析mc.xxx.com...
帮助我们翻译MCC:https://crwd.in/minecraft-console-client
正在连接至https://skin.xxx.xxx/api/yggdrasil...
登录失败:网络错误。

如果把配置文件的AuthServer改成只剩域名:

AccountType = "yggdrasil"                   # 帐户类型:mojang 或是 microsoft 或是 yggdrasil。此项设置也会影响交互式登录。
Method = "mcc"                              # 微软账户的登录方式:mcc 或是 browser(手动在网页上登录)。
AuthServer = { Host = "skin.xxx.xxx", Port = 443 } # Yggdrasil API 认证服务器的域名与端口。

则可以正常登录

Minecraft Console Client v1.20.4 - for MC 1.4.6 to 1.20.4 - Github.com/MCCTeam
GitHub build 276, built on 2024-09-06 from commit 27e6643
正在解析mc.xxx.com...
帮助我们翻译MCC:https://crwd.in/minecraft-console-client
正在连接至skin.xxx.xxx...
正在以 Minecraft 版本 1.20.4 (v765协议)运行
name的聊天签名密钥缓存仍然有效.
[MCC] 该版本受到支持
正在登录...
[MCC] 检查会话...
[MCC] 已成功加入服务器。