From a29b9613cb722b282b301efdc855e8eecdea135a Mon Sep 17 00:00:00 2001 From: Kaede Akino Date: Tue, 15 Sep 2026 09:25:19 +0800 Subject: [PATCH] Refine peerClosed text --- Frameworks/Resources/Localizable.xcstrings | 6 +++--- Frameworks/TermindApplication/SSHConnectionTypes.swift | 2 +- TFMTests/SSHHandshakeDiagnosticsTests.swift | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Frameworks/Resources/Localizable.xcstrings b/Frameworks/Resources/Localizable.xcstrings index 00893fb4..4e13de0c 100644 --- a/Frameworks/Resources/Localizable.xcstrings +++ b/Frameworks/Resources/Localizable.xcstrings @@ -23724,19 +23724,19 @@ } } }, - "The server closed the connection before sending its SSH identification. Check the server's unauthenticated connection limits." : { + "The server closed the connection before sending its SSH identification." : { "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "服务器在发送SSH标识前关闭了连接。请检查服务器的未认证连接限制。" + "value" : "服务器在发送SSH标识前关闭了连接。" } }, "zh-Hant" : { "stringUnit" : { "state" : "translated", - "value" : "伺服器在傳送SSH標識前關閉了連線。請檢查伺服器的未認證連線限制。" + "value" : "伺服器在傳送SSH標識前關閉了連線。" } } } diff --git a/Frameworks/TermindApplication/SSHConnectionTypes.swift b/Frameworks/TermindApplication/SSHConnectionTypes.swift index c553e24c..d5b7abb5 100644 --- a/Frameworks/TermindApplication/SSHConnectionTypes.swift +++ b/Frameworks/TermindApplication/SSHConnectionTypes.swift @@ -112,7 +112,7 @@ public nonisolated struct SSHHandshakeFailure: Hashable, Sendable { case .peerClosed: message = String( localized: - "The server closed the connection before sending its SSH identification. Check the server's unauthenticated connection limits." + "The server closed the connection before sending its SSH identification." ) case .receiveFailed: message = String( diff --git a/TFMTests/SSHHandshakeDiagnosticsTests.swift b/TFMTests/SSHHandshakeDiagnosticsTests.swift index 91d88f3c..20266043 100644 --- a/TFMTests/SSHHandshakeDiagnosticsTests.swift +++ b/TFMTests/SSHHandshakeDiagnosticsTests.swift @@ -99,7 +99,6 @@ struct SSHHandshakeDiagnosticsTests { elapsedMilliseconds: 20_000, peer: peer ) - #expect(disconnected.localizedDescription.contains("unauthenticated connection limits")) #expect(invalid.localizedDescription.contains("invalid SSH identification")) #expect(timedOut.localizedDescription.contains("timed out")) #expect(disconnected.diagnosticDescription.contains("peer \(peer)"))