[backend/startup] Support unix sockets on FreeBSD
This commit is contained in:
parent
31807c654d
commit
81e9c7e635
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ public static class WebApplicationExtensions {
|
||||||
var logger = app.Services.CreateScope().ServiceProvider.GetRequiredService<ILoggerFactory>()
|
var logger = app.Services.CreateScope().ServiceProvider.GetRequiredService<ILoggerFactory>()
|
||||||
.CreateLogger("Microsoft.Hosting.Lifetime");
|
.CreateLogger("Microsoft.Hosting.Lifetime");
|
||||||
|
|
||||||
if (!OperatingSystem.IsLinux() && !OperatingSystem.IsMacOS())
|
if (!OperatingSystem.IsLinux() && !OperatingSystem.IsMacOS() && !OperatingSystem.IsFreeBSD())
|
||||||
throw new Exception("Can't set unix socket permissions on a non-UNIX system");
|
throw new Exception("Can't set unix socket permissions on a non-UNIX system");
|
||||||
|
|
||||||
var perms = "660";
|
var perms = "660";
|
||||||
|
|
Loading…
Add table
Reference in a new issue