Skip to content

Commit

Permalink
Fix Kestrel not listening on IPv6
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaliumhexacyanoferrat committed Jan 10, 2025
1 parent cb1ae25 commit 4139d42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Engine/Shared/Infrastructure/ServerBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ public IServer Build()
}
else
{
endpoints.Add(new EndPointConfiguration(IPAddress.Any, _Port, null, false));
// we cannot bind to both IPv6 and IPv4 on linux
// listening to IPv6 will also listen to IPv4 due to dual-stack
endpoints.Add(new EndPointConfiguration(IPAddress.IPv6Any, _Port, null, false));
}
}

Expand Down

0 comments on commit 4139d42

Please sign in to comment.