Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
zabszk committed Jul 8, 2024
2 parents 5739046 + 7a25b23 commit 2a3eaa0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, windows-latest]
framework: ['7.0']
framework: ['8.0']
include:
- os: ubuntu-20.04
target: linux-x64
Expand Down
2 changes: 1 addition & 1 deletion Core/LocalAdmin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace LocalAdmin.V2.Core;

public sealed class LocalAdmin : IDisposable
{
public const string VersionString = "2.5.14";
public const string VersionString = "2.5.15";
private const ushort DefaultPort = 7777;

private static readonly ConcurrentQueue<string> InputQueue = new();
Expand Down
5 changes: 2 additions & 3 deletions Core/TcpServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public void Start()
}
_client = _listener.EndAcceptTcpClient(result);
_client.NoDelay = true;
_client.ReceiveBufferSize = LocalAdmin.Configuration!.SlToLaBufferSize;
_client.SendBufferSize = LocalAdmin.Configuration.LaToSlBufferSize;
Expand Down Expand Up @@ -103,9 +104,7 @@ public void Start()
continue;
}
var length = (lengthBuffer[0] << 24) | (lengthBuffer[1] << 16) |
(lengthBuffer[2] << 8) | lengthBuffer[3];
var length = MemoryMarshal.Cast<byte, int>(lengthBuffer)[0];
var buffer = ArrayPool<byte>.Shared.Rent(length);
while (_client.Available < length)
Expand Down
4 changes: 2 additions & 2 deletions LocalAdmin V2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<DisableWinExeOutputInference>true</DisableWinExeOutputInference>
<TargetFramework Condition="$(RuntimeIdentifier.StartsWith('win', StringComparison.OrdinalIgnoreCase))">net7.0-windows</TargetFramework>
<TargetFramework Condition="!$(RuntimeIdentifier.StartsWith('win', StringComparison.OrdinalIgnoreCase))">net7.0</TargetFramework>
<TargetFramework Condition="$(RuntimeIdentifier.StartsWith('win', StringComparison.OrdinalIgnoreCase))">net8.0-windows</TargetFramework>
<TargetFramework Condition="!$(RuntimeIdentifier.StartsWith('win', StringComparison.OrdinalIgnoreCase))">net8.0</TargetFramework>
<ApplicationManifest>app.manifest</ApplicationManifest>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
Expand Down

0 comments on commit 2a3eaa0

Please sign in to comment.