Refine peerClosed text
This commit is contained in:
1 parent
04b676bf06
commit
a29b9613cb
3 files changed
+4
-5
No files matched your search
@@ -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標識前關閉了連線。"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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)"))
|
||||
|
||||
Reference in new issue
Block a user