Throw PlatformNotSupportedException on big-endian platforms
This commit is contained in:
parent
d475d41f71
commit
5e97c63467
|
|
@ -59,6 +59,11 @@ namespace Microsoft.AspNetCore.Server.Kestrel
|
|||
{
|
||||
try
|
||||
{
|
||||
if (!BitConverter.IsLittleEndian)
|
||||
{
|
||||
throw new PlatformNotSupportedException("Kestrel does not support big-endian architectures.");
|
||||
}
|
||||
|
||||
ValidateOptions();
|
||||
|
||||
if (_disposables != null)
|
||||
|
|
|
|||
Loading…
Reference in New Issue