aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-01 01:21:58 +0100
committerKim Alvefur <zash@zash.se>2019-12-01 01:21:58 +0100
commitbe74ecddca91607c3305ae11c18461935c3d4384 (patch)
treefedd1a6ca7fd484fee7bc5385716a08e15a369c9 /net
parent33ba4c2dbad8a92dcd7d9a94cc32bbb82b688b93 (diff)
downloadprosody-be74ecddca91607c3305ae11c18461935c3d4384.tar.gz
prosody-be74ecddca91607c3305ae11c18461935c3d4384.zip
net.server_select: Remove prefix added to TLS handshaker errors
For consistency. None of the other implementations do this.
Diffstat (limited to 'net')
-rw-r--r--net/server_select.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index e15f5298..9cd3463e 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -611,7 +611,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
coroutine_yield( ) -- handshake not finished
end
end
- err = "ssl handshake error: " .. ( err or "handshake too long" );
+ err = ( err or "handshake too long" );
out_put( "server.lua: ", err );
_ = handler and handler:force_close(err)
return false, err -- handshake failed