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()) {