Skip to content

[BUG] 在服务器内转移到另外一个srv解析的服务器报错 #3064

@BrGef

Description

@BrGef

Prerequisites

  • I made sure I am running the latest development build
  • I tried to look for similar issues before opening a new one
  • I have set debugmessages=true in config to diagnose my issue
  • I have redacted session tokens and passwords before attaching screenshots

Minecraft Version

1.21.11

Console Client Version

20260406-412

Expected Behavior

服务器内有/server survival指令,它的作用就是转移到另外一个服务器,当我使用后报错
查看了一下报错,发现转移后他没有用srv解析,实际area.silinthoakes.top也是srv解析,这就出现了failed: 不知道这样的主机

[MCC] 已成功加入服务器。
输入 '/quit' 离开服务器。
[DEBUG] Receive JoinGame
[DEBUG] CanSendMessage = False
[DEBUG] SendPlayerSession MessageUUID = f6f7c0a0-a780-4301-ac7a-95ee01ee9552, len(PublicKey) = 294, len(SignatureV2) = 512
▌BrGef加入了游戏
[DEBUG] Receive ChatUuid = Empty
[DEBUG] Receive DeclareCommands
[DEBUG] CanSendMessage = True
[DEBUG] Receive ChatUuid = f6f7c0a0-a780-4301-ac7a-95ee01ee9552
[DEBUG] CanSendMessage = True
[DEBUG] Receive DeclareCommands
[DEBUG] CanSendMessage = True
[DEBUG] chat command = server survival
[MCC] Initiating a transfer to: area.silinthoakes.top:25565
[DEBUG] CanSendMessage = False
[ERROR] Transfer to area.silinthoakes.top:25565 failed: 不知道这样的主机。

未连接至任何服务器。输入 '/help' 获得帮助。
或者敲击回车退出Minecraft Console Client。

Unhandled exception. System.Exception: Transfer failed and reconnection attempts exhausted.
---> System.Net.Sockets.SocketException (0x00002AF9): 不知道这样的主机。
at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily, Nullable1 activityOrDefault) at System.Net.Dns.GetHostAddresses(String hostNameOrAddress, AddressFamily family) at System.Net.Sockets.Socket.Connect(String host, Int32 port) at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port) at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port) at MinecraftClient.Proxy.ProxyHandler.NewTcpClient(String host, Int32 port, Boolean login) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/Proxy/ProxyHandler.cs:line 98 at MinecraftClient.McClient.Transfer(String newHost, Int32 newPort) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/McClient.cs:line 437 --- End of inner exception stack trace --- at MinecraftClient.McClient.Transfer(String newHost, Int32 newPort) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/McClient.cs:line 508 at MinecraftClient.Protocol.Handlers.Protocol18Handler.HandlePlayPackets(Int32 packetId, Queue1 packetData) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/Protocol18.cs:line 3237
at MinecraftClient.Protocol.Handlers.Protocol18Handler.HandlePacket(Int32 packetId, Queue`1 packetData) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/Protocol18.cs:line 636
at MinecraftClient.Protocol.Handlers.Protocol18Handler.Updater(Object o) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/Protocol18.cs:line 309
at System.Threading.Thread.StartHelper.Callback(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

Actual Behavior

服务器内转移到另一个服务器没有用srv解析

Steps to Reproduce the bug

Attach screenshot here (If applicable)

No response

Anythings that could help diagnosing the bug

Device

None

Operating System

None

Server Address (If applicable)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:bugCrash or feature not working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions