aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-04-17 21:30:44 +0200
committerKim Alvefur <zash@zash.se>2013-04-17 21:30:44 +0200
commitcc4fd7b37da281c49a3213e9de02df0f329619b2 (patch)
treece202f7a7e5fd694fca3d227941d5534e5802e4b /net/server_select.lua
parent998b0c1b8b39f8033fdfe1439afb533455ba15d5 (diff)
downloadprosody-cc4fd7b37da281c49a3213e9de02df0f329619b2.tar.gz
prosody-cc4fd7b37da281c49a3213e9de02df0f329619b2.zip
net.server_select: Normalize indentation
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index f123f4b7..6592de9b 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -569,7 +569,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
end
out_put( "server.lua: ssl handshake error: ", tostring(err or "handshake too long") )
_ = handler and handler:force_close("ssl handshake failed")
- return false, err -- handshake failed
+ return false, err -- handshake failed
end
)
end
@@ -613,7 +613,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
handler.readbuffer = handshake
handler.sendbuffer = handshake
- return handshake( socket ) -- do handshake
+ return handshake( socket ) -- do handshake
end
end
@@ -629,10 +629,10 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
if sslctx and luasec then
out_put "server.lua: auto-starting ssl negotiation..."
handler.autostart_ssl = true;
- local ok, err = handler:starttls(sslctx);
- if ok == false then
- return nil, nil, err
- end
+ local ok, err = handler:starttls(sslctx);
+ if ok == false then
+ return nil, nil, err
+ end
end
return handler, socket