// /** // * File: HttpsListener.cs // * Author: haraldwolff // * // * This file and it's content is copyrighted by the Author and / or copyright holder. // * Any use wihtout proper permission is illegal and may lead to legal actions. // * // * // **/ using ln.type; using ln.http.connections; using ln.http.cert; namespace ln.http.listener { public class HttpsListener : HttpListener { public HttpsListener(int port) : this(IPv6.ANY, port) { } public HttpsListener(IPv6 listen, int port) : base(listen, port) { } public CertContainer CertContainer { get; set; } = new CertContainer(); public override Connection Accept() { return new HttpsConnection(this, base.Accept(),CertContainer.SelectCertificate); } } }