Software /
code /
prosody
Comparison
net/server_epoll.lua @ 10234:d4390c427a66
net.server: Handle server name (SNI) as extra argument
Code added in 75d2874502c3, 9a905888b96c and adc0672b700e uses this field.
See #409 and #1408
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 01 Sep 2019 01:58:38 +0200 |
parent | 10233:600eee3c4752 |
child | 10278:94c584d67533 |
comparison
equal
deleted
inserted
replaced
10233:600eee3c4752 | 10234:d4390c427a66 |
---|---|
572 tls_ctx = tls_ctx or (server and server.tls_ctx); | 572 tls_ctx = tls_ctx or (server and server.tls_ctx); |
573 tls_direct = server and server.tls_direct; | 573 tls_direct = server and server.tls_direct; |
574 log = logger.init(("conn%s"):format(new_id())); | 574 log = logger.init(("conn%s"):format(new_id())); |
575 extra = extra; | 575 extra = extra; |
576 }, interface_mt); | 576 }, interface_mt); |
577 | |
578 if extra then | |
579 if extra.servername then | |
580 conn.servername = extra.servername; | |
581 end | |
582 end | |
577 | 583 |
578 conn:updatenames(); | 584 conn:updatenames(); |
579 return conn; | 585 return conn; |
580 end | 586 end |
581 | 587 |