From 079cc9082d365984edf38dcd616dd821fe3fb928 Mon Sep 17 00:00:00 2001 From: xljiulang <366193849@qq.com> Date: Sat, 24 Jul 2021 20:20:52 +0800 Subject: [PATCH] =?UTF-8?q?https=E5=8F=AA=E7=9B=91=E5=90=ACip=20v4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs b/FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs index aab7947..24cfd74 100644 --- a/FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs +++ b/FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs @@ -43,7 +43,7 @@ namespace FastGithub GeneratorCaCert(caPublicCerPath, caPrivateKeyPath); InstallCaCert(caPublicCerPath, logger); - kestrel.ListenAnyIP(443, listen => + kestrel.Listen(IPAddress.Any, 443, listen => listen.UseHttps(https => https.ServerCertificateSelector = (ctx, domain) => GetDomainCert(domain, caPublicCerPath, caPrivateKeyPath)));