builder.WebHost.UseKestrel(x => { x.ListenAnyIP(18940, options => { options.Protocols = HttpProtocols.Http2; } }
对于我当前项目中的代码,不需要特殊配置。