Skip to content

Commit 102a2dd

Browse files
authored
Merge pull request #3135 from akrherz/OF-3165
OF-3165: Fix TLS error message in closeNeverEncryptedConnection
2 parents 3943ecb + 7c81c6a commit 102a2dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎xmppserver/src/main/java/org/jivesoftware/openfire/net/StanzaHandler.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2005-2008 Jive Software, 2016-2024 Ignite Realtime Foundation. All rights reserved.
2+
* Copyright (C) 2005-2026 Jive Software, 2016-2024 Ignite Realtime Foundation. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -639,7 +639,7 @@ protected Document getStreamHeader()
639639
*/
640640
protected void closeNeverEncryptedConnection() {
641641
// Send a stream error and close the underlying connection.
642-
connection.close(new StreamError(StreamError.Condition.not_authorized, "TLS is mandatory, but was established."));
642+
connection.close(new StreamError(StreamError.Condition.not_authorized, "TLS is mandatory, but was not established."));
643643
// Log a warning so that admins can track this case from the server side
644644
Log.warn("TLS was required by the server and connection was never encrypted. Closing connection: {}", connection);
645645
}

0 commit comments

Comments
 (0)