diff options
author | Kim Alvefur <zash@zash.se> | 2019-09-01 01:58:38 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-09-01 01:58:38 +0200 |
commit | fb692a2cedc46229966f4a84585f292abe850ba4 (patch) | |
tree | 3a720d3bef1fa783f79dc4fa935a2b7b399da489 /net/server_select.lua | |
parent | 9afa1ac496bac9d9eaaf687edbdde3f0c7fb66e1 (diff) | |
download | prosody-fb692a2cedc46229966f4a84585f292abe850ba4.tar.gz prosody-fb692a2cedc46229966f4a84585f292abe850ba4.zip |
net.server: Handle server name (SNI) as extra argument
Code added in 75d2874502c3, 9a905888b96c and adc0672b700e uses this field.
See #409 and #1408
Diffstat (limited to 'net/server_select.lua')
-rw-r--r-- | net/server_select.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/server_select.lua b/net/server_select.lua index de183331..e15f5298 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -317,6 +317,9 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport local handler = bufferqueue -- saves a table ^_^ handler.extra = extra + if extra then + handler.servername = extra.servername + end handler.dispatch = function( ) return dispatch |