diff --git a/src/pdns-dhcp/Program.cs b/src/pdns-dhcp/Program.cs index d5cbdd0..ca64e74 100644 --- a/src/pdns-dhcp/Program.cs +++ b/src/pdns-dhcp/Program.cs @@ -29,7 +29,7 @@ builder.Services.AddTypedFactory(); builder.Services.AddTransient(); builder.Services.AddTransient(); -builder.WebHost.UseSockets(options => +builder.Services.Configure(options => { options.CreateBoundListenSocket = endpoint => { @@ -55,7 +55,6 @@ builder.WebHost.UseSockets(options => }; }); -builder.WebHost.UseKestrelCore(); builder.WebHost.ConfigureKestrel((context, options) => { if (context.Configuration.GetRequiredSection("PowerDns:Listener").Get() is { } pdnsOptions)