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
|
try
|
||||||
{
|
{
|
||||||
|
if (!BitConverter.IsLittleEndian)
|
||||||
|
{
|
||||||
|
throw new PlatformNotSupportedException("Kestrel does not support big-endian architectures.");
|
||||||
|
}
|
||||||
|
|
||||||
ValidateOptions();
|
ValidateOptions();
|
||||||
|
|
||||||
if (_disposables != null)
|
if (_disposables != null)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue