From 299d81b76b3114d8a91da4cbab75831ac2be6313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Thu, 29 Jul 2021 14:27:55 +0800 Subject: [PATCH] yield break --- 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 f4871c9..52a33ba 100644 --- a/FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs +++ b/FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs @@ -184,10 +184,10 @@ namespace FastGithub if (string.IsNullOrEmpty(host) == false) { yield return host; + yield break; } var globalPropreties = IPGlobalProperties.GetIPGlobalProperties(); - yield return globalPropreties.HostName; foreach (var item in globalPropreties.GetUnicastAddresses()) {