Comparison

net/server_epoll.lua @ 11595:8985efc6792d

net.server_epoll: Add missing method for changing TLS context Supported by the other net.server implementations already, but not used anywhere in Prosody.
author Kim Alvefur <zash@zash.se>
date Thu, 10 Jun 2021 13:48:20 -0003
parent 11592:64cfa396bb84
child 11658:36942fa001b4
comparison
equal deleted inserted replaced
11594:19aac4247b03 11595:8985efc6792d
539 self.conn = nil; 539 self.conn = nil;
540 end 540 end
541 541
542 function interface:ssl() 542 function interface:ssl()
543 return self._tls; 543 return self._tls;
544 end
545
546 function interface:set_sslctx(sslctx)
547 self._sslctx = sslctx;
544 end 548 end
545 549
546 function interface:starttls(tls_ctx) 550 function interface:starttls(tls_ctx)
547 if tls_ctx then self.tls_ctx = tls_ctx; end 551 if tls_ctx then self.tls_ctx = tls_ctx; end
548 self.starttls = false; 552 self.starttls = false;