mirror of
https://github.com/snltty/linker.git
synced 2025-11-03 01:53:32 +08:00
sync
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
[](https://gitee.com/snltty/linker/stargazers)
|
||||
[](https://gitee.com/snltty/linker/members)
|
||||
|
||||
<a href="./Linker.Tunnel">Linker.Tunnel 打洞库说明,在你的项目集成</a>
|
||||
<a href="./linker.tunnel">linker.tunnel 打洞库说明,在你的项目集成</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Linker.Libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public static class BooleanHelper
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
|
||||
namespace Linker.Libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public sealed class CommandHelper
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace Linker.Libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public static class FireWallHelper
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Linker.Libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public static class GCHelper
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Runtime.InteropServices;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Linker.Libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public static class Helper
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Concurrent;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Linker.Libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public sealed class LoggerHelper
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Net.NetworkInformation;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
|
||||
namespace Linker.Libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public static class NetworkHelper
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Threading;
|
||||
|
||||
namespace Linker.Libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public sealed class NumberSpace
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Linker.Libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public sealed class ReceiveDataBuffer
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Linker.Libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public sealed class ReflectionHelper
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using Linker.Libs.Extends;
|
||||
using Linker.Libs.Websocket;
|
||||
using linker.libs.extends;
|
||||
using linker.libs.websocket;
|
||||
using System;
|
||||
using System.Buffers;
|
||||
using System.Collections.Concurrent;
|
||||
@@ -11,7 +11,7 @@ using System.Text.Json;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Linker.Libs.Api
|
||||
namespace linker.libs.api
|
||||
{
|
||||
/// <summary>
|
||||
/// 前段接口服务
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using Linker.Libs.Websocket;
|
||||
using linker.libs.websocket;
|
||||
using System;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Linker.Libs.Api
|
||||
namespace linker.libs.api
|
||||
{
|
||||
/// <summary>
|
||||
/// 前段接口
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Linker.Libs.Websocket;
|
||||
using linker.libs.websocket;
|
||||
using System;
|
||||
|
||||
namespace Linker.Libs.Api
|
||||
namespace linker.libs.api
|
||||
{
|
||||
/// <summary>
|
||||
/// 前端接口服务
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Buffers.Binary;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
|
||||
namespace Linker.Libs.Extends
|
||||
namespace linker.libs.extends
|
||||
{
|
||||
public static class IPEndPointExtends
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Linker.Libs.Extends
|
||||
namespace linker.libs.extends
|
||||
{
|
||||
public static class NumberExtends
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using Linker.Libs.JsonConverters;
|
||||
using linker.libs.jsonConverters;
|
||||
using System.Text.Json;
|
||||
using System.Text.Unicode;
|
||||
|
||||
namespace Linker.Libs.Extends
|
||||
namespace linker.libs.extends
|
||||
{
|
||||
public static class SerialzeExtends
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Linker.Libs.Extends
|
||||
namespace linker.libs.extends
|
||||
{
|
||||
public static class SocketExtends
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Text.Unicode;
|
||||
|
||||
namespace Linker.Libs.Extends
|
||||
namespace linker.libs.extends
|
||||
{
|
||||
/// <summary>
|
||||
/// | Method | Mean | Error | StdDev | Median | Rank | Gen0 | Allocated |
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Linker.Libs.JsonConverters
|
||||
namespace linker.libs.jsonConverters
|
||||
{
|
||||
public sealed class DateTimeConverter : JsonConverter<DateTime>
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Net;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Linker.Libs.JsonConverters
|
||||
namespace linker.libs.jsonConverters
|
||||
{
|
||||
public sealed class IPAddressJsonConverter : JsonConverter<IPAddress>
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Net;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Linker.Libs.JsonConverters
|
||||
namespace linker.libs.jsonConverters
|
||||
{
|
||||
public sealed class IPEndpointJsonConverter : JsonConverter<IPEndPoint>
|
||||
{
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<Configurations>Debug;Release</Configurations>
|
||||
<EnablePreviewFeatures>true</EnablePreviewFeatures>
|
||||
<Title>Linker libs</Title>
|
||||
<Title>linker libs</Title>
|
||||
<Authors>snltty</Authors>
|
||||
<Company>snltty</Company>
|
||||
<Description>Linker libs</Description>
|
||||
<Description>linker libs</Description>
|
||||
<Copyright>snltty</Copyright>
|
||||
<PackageProjectUrl>https://github.com/snltty/Linker</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/snltty/Linker</RepositoryUrl>
|
||||
<PackageProjectUrl>https://github.com/snltty/linker</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/snltty/linker</RepositoryUrl>
|
||||
<Version>1.1.0</Version>
|
||||
<AssemblyVersion>1.1.0.1</AssemblyVersion>
|
||||
<FileVersion>1.1.0.1</FileVersion>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Linker.Libs.Socks5
|
||||
namespace linker.libs.socks5
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据验证结果
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using Linker.Libs.Extends;
|
||||
using linker.libs.extends;
|
||||
using System;
|
||||
using System.Buffers;
|
||||
using System.Buffers.Binary;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
|
||||
namespace Linker.Libs.Socks5
|
||||
namespace linker.libs.socks5
|
||||
{
|
||||
/// <summary>
|
||||
/// socks5 数据包解析和组装
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Linker.Libs.Web
|
||||
namespace linker.libs.web
|
||||
{
|
||||
/// <summary>
|
||||
/// web服务
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.IO;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Linker.Libs.Web
|
||||
namespace linker.libs.web
|
||||
{
|
||||
/// <summary>
|
||||
/// 本地web管理端服务器
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using Linker.Libs.Extends;
|
||||
using linker.libs.extends;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace Linker.Libs.Websocket
|
||||
namespace linker.libs.websocket
|
||||
{
|
||||
/// <summary>
|
||||
/// wensocket客户端
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.Net;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
||||
namespace Linker.Libs.Websocket
|
||||
namespace linker.libs.websocket
|
||||
{
|
||||
/// <summary>
|
||||
/// websocket解析器
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Linker.Libs.Extends;
|
||||
using linker.libs.extends;
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
@@ -7,7 +7,7 @@ using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
|
||||
namespace Linker.Libs.Websocket
|
||||
namespace linker.libs.websocket
|
||||
{
|
||||
/// <summary>
|
||||
/// websocket服务端
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Runtime.InteropServices;
|
||||
using System.Security;
|
||||
using System.Text;
|
||||
|
||||
namespace Linker.Libs.Winapis;
|
||||
namespace linker.libs.winapis;
|
||||
|
||||
public static unsafe class ADVAPI32
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Linker.Libs.Winapis;
|
||||
namespace linker.libs.winapis;
|
||||
|
||||
public static class GDI32
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Net;
|
||||
using System.Reflection.Metadata;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Linker.Libs.Winapis;
|
||||
namespace linker.libs.winapis;
|
||||
|
||||
public static unsafe class Kernel32
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Linker.Libs.Winapis
|
||||
namespace linker.libs.winapis
|
||||
{
|
||||
public static class MSvcrt
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace Linker.Libs.Winapis
|
||||
namespace linker.libs.winapis
|
||||
{
|
||||
public static class NetApi32
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Linker.Libs.Winapis
|
||||
namespace linker.libs.winapis
|
||||
{
|
||||
internal class Powrprof
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Runtime.InteropServices;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
|
||||
namespace Linker.Libs.Winapis;
|
||||
namespace linker.libs.winapis;
|
||||
|
||||
public static class SECUR32
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Linker.Libs.Winapis;
|
||||
namespace linker.libs.winapis;
|
||||
|
||||
// https://docs.microsoft.com/en-us/windows/win32/api/shlwapi/nf-shlwapi-isos
|
||||
public class Shlwapi
|
||||
|
||||
@@ -3,7 +3,7 @@ using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace Linker.Libs.Winapis;
|
||||
namespace linker.libs.winapis;
|
||||
|
||||
public static class User32
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security;
|
||||
|
||||
namespace Linker.Libs.Winapis;
|
||||
namespace linker.libs.winapis;
|
||||
|
||||
public static class WTSAPI32
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Linker.Libs.Winapis;
|
||||
using linker.libs.winapis;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
@@ -10,13 +10,13 @@ using System.Runtime.Serialization;
|
||||
using System.Security.Principal;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using static Linker.Libs.Winapis.WTSAPI32;
|
||||
using static Linker.Libs.Winapis.ADVAPI32;
|
||||
using static Linker.Libs.Winapis.Kernel32;
|
||||
using static Linker.Libs.Winapis.NetApi32;
|
||||
using static Linker.Libs.Winapis.User32;
|
||||
using static linker.libs.winapis.WTSAPI32;
|
||||
using static linker.libs.winapis.ADVAPI32;
|
||||
using static linker.libs.winapis.Kernel32;
|
||||
using static linker.libs.winapis.NetApi32;
|
||||
using static linker.libs.winapis.User32;
|
||||
|
||||
namespace Linker.Libs.Winapis
|
||||
namespace linker.libs.winapis
|
||||
{
|
||||
public class Win32Interop
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Net;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Linker.Libs.Winapis
|
||||
namespace linker.libs.winapis
|
||||
{
|
||||
public static class Wininet
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Linker.Libs.Winapis
|
||||
namespace linker.libs.winapis
|
||||
{
|
||||
public static class Wlanapi
|
||||
{
|
||||
|
||||
2
linker.service/LinkerService.Designer.cs
generated
2
linker.service/LinkerService.Designer.cs
generated
@@ -1,4 +1,4 @@
|
||||
namespace Linker.Service
|
||||
namespace linker.service
|
||||
{
|
||||
partial class LinkerService
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Diagnostics;
|
||||
using System.ServiceProcess;
|
||||
|
||||
namespace Linker.Service
|
||||
namespace linker.service
|
||||
{
|
||||
partial class LinkerService : ServiceBase
|
||||
{
|
||||
@@ -12,7 +12,7 @@ namespace Linker.Service
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private string mainExeName = "Linker";
|
||||
private string mainExeName = "linker";
|
||||
private CancellationTokenSource cancellationTokenSource = new CancellationTokenSource();
|
||||
|
||||
protected override void OnStart(string[] _args)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.ServiceProcess;
|
||||
|
||||
namespace Linker.Service
|
||||
namespace linker.service
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
|
||||
10
linker.sln
10
linker.sln
@@ -3,15 +3,15 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.4.33110.190
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Linker", "Linker\Linker.csproj", "{267DE8BE-F91C-4CCB-9D58-D33FDA661126}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "linker", "linker\linker.csproj", "{267DE8BE-F91C-4CCB-9D58-D33FDA661126}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Linker.Libs", "Linker.libs\Linker.Libs.csproj", "{00EECF97-99EB-4B12-AAEF-ED2363914275}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "linker.libs", "linker.libs\linker.libs.csproj", "{00EECF97-99EB-4B12-AAEF-ED2363914275}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Linker.Tests", "Linker.tests\Linker.Tests.csproj", "{04AA3054-5350-4D8B-97F6-31495AE0609D}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "linker.tests", "linker.tests\linker.tests.csproj", "{04AA3054-5350-4D8B-97F6-31495AE0609D}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Linker.Service", "Linker.service\Linker.Service.csproj", "{E8AB5039-3A42-424F-AAEC-A102C8CAA305}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "linker.service", "linker.service\linker.service.csproj", "{E8AB5039-3A42-424F-AAEC-A102C8CAA305}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Linker.Tunnel", "Linker.tunnel\Linker.Tunnel.csproj", "{AFADE8D6-AB00-456B-9F43-53BC95B7B608}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "linker.tunnel", "linker.tunnel\linker.tunnel.csproj", "{AFADE8D6-AB00-456B-9F43-53BC95B7B608}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using Linker.Serializes;
|
||||
using Linker.Tunnel.Connection;
|
||||
using Linker.Tunnel.Transport;
|
||||
using linker.serializes;
|
||||
using linker.tunnel.connection;
|
||||
using linker.tunnel.transport;
|
||||
using MemoryPack;
|
||||
using System.Net;
|
||||
|
||||
namespace Linker.Tests
|
||||
namespace linker.Tests
|
||||
{
|
||||
[TestClass]
|
||||
public class MemoryPackIPEndPointSerialize
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Linker\Linker.csproj" />
|
||||
<ProjectReference Include="..\linker\linker.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
## Linker.Tunnel 打洞库说明
|
||||
## linker.tunnel 打洞库说明
|
||||
|
||||
### 说明
|
||||
你需要自己实现信标服务器,用于交换打洞信息
|
||||
|
||||
```
|
||||
nuget 安装 Linker.Tunnel
|
||||
nuget 安装 linker.tunnel
|
||||
```
|
||||
|
||||
### 1、初始化
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
using Linker.Tunnel.Adapter;
|
||||
using Linker.Tunnel.Connection;
|
||||
using Linker.Tunnel.Transport;
|
||||
using Linker.Libs;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.tunnel.adapter;
|
||||
using linker.tunnel.connection;
|
||||
using linker.tunnel.transport;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Net.Sockets;
|
||||
using System.Net;
|
||||
using Linker.Tunnel.WanPort;
|
||||
using linker.tunnel.wanport;
|
||||
|
||||
namespace Linker.Tunnel
|
||||
namespace linker.tunnel
|
||||
{
|
||||
public sealed class TunnelTransfer
|
||||
{
|
||||
@@ -243,6 +243,7 @@ namespace Linker.Tunnel
|
||||
{
|
||||
return await GetLocalInfo();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取自己的外网IP
|
||||
/// </summary>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using Linker.Tunnel.WanPort;
|
||||
using Linker.Tunnel.Transport;
|
||||
using linker.tunnel.wanport;
|
||||
using linker.tunnel.transport;
|
||||
using System.Net;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
|
||||
namespace Linker.Tunnel.Adapter
|
||||
namespace linker.tunnel.adapter
|
||||
{
|
||||
public interface ITunnelAdapter
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Net;
|
||||
|
||||
namespace Linker.Tunnel.Connection
|
||||
namespace linker.tunnel.connection
|
||||
{
|
||||
/// <summary>
|
||||
/// 隧道协议
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using Linker.Libs.Extends;
|
||||
using Linker.Libs;
|
||||
using linker.libs.extends;
|
||||
using linker.libs;
|
||||
using System.Buffers;
|
||||
using System.Net.Quic;
|
||||
using System.Net;
|
||||
@@ -7,7 +7,7 @@ using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace Linker.Tunnel.Connection
|
||||
namespace linker.tunnel.connection
|
||||
{
|
||||
/// <summary>
|
||||
/// msquic
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using Linker.Libs;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using System.Buffers;
|
||||
using System.Net.Security;
|
||||
using System.Net;
|
||||
@@ -7,7 +7,7 @@ using System.Text.Json.Serialization;
|
||||
using System.Text;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace Linker.Tunnel.Connection
|
||||
namespace linker.tunnel.connection
|
||||
{
|
||||
public sealed class TunnelConnectionTcp : ITunnelConnection
|
||||
{
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
using Linker.Libs.Extends;
|
||||
using Linker.Libs;
|
||||
using linker.libs.extends;
|
||||
using linker.libs;
|
||||
using System.Buffers;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace Linker.Tunnel.Connection
|
||||
namespace linker.tunnel.connection
|
||||
{
|
||||
public sealed class TunnelConnectionUdp : ITunnelConnection
|
||||
{
|
||||
|
||||
@@ -8,21 +8,21 @@
|
||||
<PublishAot>false</PublishAot>
|
||||
<JsonSerializerIsReflectionEnabledByDefault>true</JsonSerializerIsReflectionEnabledByDefault>
|
||||
<EnablePreviewFeatures>true</EnablePreviewFeatures>
|
||||
<Title>Linker tunnel</Title>
|
||||
<Title>linker tunnel</Title>
|
||||
<Version>1.1.0</Version>
|
||||
<Authors>snltty</Authors>
|
||||
<Company>snltty</Company>
|
||||
<Description>Linker tunnel</Description>
|
||||
<Description>linker tunnel</Description>
|
||||
<Copyright>snltty</Copyright>
|
||||
<PackageProjectUrl>https://github.com/snltty/Linker</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/snltty/Linker</RepositoryUrl>
|
||||
<PackageReleaseNotes>Linker tunnel</PackageReleaseNotes>
|
||||
<PackageProjectUrl>https://github.com/snltty/linker</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/snltty/linker</RepositoryUrl>
|
||||
<PackageReleaseNotes>linker tunnel</PackageReleaseNotes>
|
||||
<AssemblyVersion>1.1.0.1</AssemblyVersion>
|
||||
<FileVersion>1.1.0.1</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Linker.Libs\Linker.Libs.csproj" />
|
||||
<ProjectReference Include="..\linker.libs\linker.libs.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using Linker.Tunnel.Connection;
|
||||
using Linker.Libs;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.tunnel.connection;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using System.Buffers;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace Linker.Tunnel.Proxy
|
||||
namespace linker.tunnel.proxy
|
||||
{
|
||||
public partial class TunnelProxy : ITunnelConnectionReceiveCallback
|
||||
{
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
using Linker.Tunnel.Connection;
|
||||
using Linker.Libs;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.tunnel.connection;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using System.Buffers;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace Linker.Tunnel.Proxy
|
||||
namespace linker.tunnel.proxy
|
||||
{
|
||||
public partial class TunnelProxy
|
||||
{
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using Linker.Tunnel.Connection;
|
||||
using Linker.Libs;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.tunnel.connection;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace Linker.Tunnel.Proxy
|
||||
namespace linker.tunnel.proxy
|
||||
{
|
||||
public partial class TunnelProxy
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Linker.Tunnel.Connection;
|
||||
using linker.tunnel.connection;
|
||||
using System.Net;
|
||||
|
||||
namespace Linker.Tunnel.Transport
|
||||
namespace linker.tunnel.transport
|
||||
{
|
||||
public interface ITunnelTransport
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Linker.Tunnel.Adapter;
|
||||
using Linker.Tunnel.Connection;
|
||||
using Linker.Libs;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.tunnel.adapter;
|
||||
using linker.tunnel.connection;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using System.Buffers;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Net;
|
||||
@@ -11,7 +11,7 @@ using System.Net.Sockets;
|
||||
using System.Security.Authentication;
|
||||
using System.Text;
|
||||
|
||||
namespace Linker.Tunnel.Transport
|
||||
namespace linker.tunnel.transport
|
||||
{
|
||||
public sealed class TransportMsQuic : ITunnelTransport
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Linker.Tunnel.Adapter;
|
||||
using Linker.Tunnel.Connection;
|
||||
using Linker.Libs;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.tunnel.adapter;
|
||||
using linker.tunnel.connection;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Net;
|
||||
using System.Net.Security;
|
||||
@@ -9,7 +9,7 @@ using System.Net.Sockets;
|
||||
using System.Security.Authentication;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
|
||||
namespace Linker.Tunnel.Transport
|
||||
namespace linker.tunnel.transport
|
||||
{
|
||||
public sealed class TunnelTransportTcpNutssb : ITunnelTransport
|
||||
{
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
using Linker.Tunnel.Connection;
|
||||
using Linker.Libs;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.tunnel.connection;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
|
||||
namespace Linker.Tunnel.Transport
|
||||
namespace linker.tunnel.transport
|
||||
{
|
||||
public sealed class TransportUdp : ITunnelTransport
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Net;
|
||||
|
||||
namespace Linker.Tunnel.WanPort
|
||||
namespace linker.tunnel.wanport
|
||||
{
|
||||
/// <summary>
|
||||
/// 外网端口协议
|
||||
@@ -51,7 +51,7 @@ namespace Linker.Tunnel.WanPort
|
||||
|
||||
public enum TunnelWanPortType : byte
|
||||
{
|
||||
Linker = 0,
|
||||
linker = 0,
|
||||
Stun = 1
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
using Linker.Libs.Extends;
|
||||
using linker.libs.extends;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace Linker.Tunnel.WanPort
|
||||
namespace linker.tunnel.wanport
|
||||
{
|
||||
public sealed class TunnelWanPortLinker : ITunnelWanPort
|
||||
{
|
||||
public string Name => "默认";
|
||||
public TunnelWanPortType Type => TunnelWanPortType.Linker;
|
||||
public TunnelWanPortType Type => TunnelWanPortType.linker;
|
||||
|
||||
public TunnelWanPortLinker()
|
||||
{
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using Linker.Libs.Extends;
|
||||
using linker.libs.extends;
|
||||
using System.Buffers.Binary;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace Linker.Tunnel.WanPort
|
||||
namespace linker.tunnel.wanport
|
||||
{
|
||||
public sealed class TunnelWanPortStun : ITunnelWanPort
|
||||
{
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using Linker.Tunnel.Adapter;
|
||||
using Linker.Libs;
|
||||
using linker.tunnel.adapter;
|
||||
using linker.libs;
|
||||
using System.Diagnostics;
|
||||
using System.Net;
|
||||
|
||||
namespace Linker.Tunnel.WanPort
|
||||
namespace linker.tunnel.wanport
|
||||
{
|
||||
/// <summary>
|
||||
/// 外网端口协议
|
||||
|
||||
@@ -16,4 +16,4 @@ COPY . .
|
||||
|
||||
|
||||
|
||||
ENTRYPOINT ["./Linker.run"]
|
||||
ENTRYPOINT ["./linker.run"]
|
||||
@@ -1,10 +1,10 @@
|
||||
using Linker.Libs;
|
||||
using linker.libs;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Reflection;
|
||||
using Linker.Startup;
|
||||
using Linker.Config;
|
||||
using linker.startup;
|
||||
using linker.config;
|
||||
|
||||
namespace Linker
|
||||
namespace linker
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Linker": {
|
||||
"linker": {
|
||||
"commandName": "Project"
|
||||
},
|
||||
"Docker": {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Linker.Server;
|
||||
using linker.server;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Linker.Client
|
||||
namespace linker.client
|
||||
{
|
||||
/// <summary>
|
||||
/// 登入对象
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
using Linker.Client.Args;
|
||||
using Linker.Client.Config;
|
||||
using Linker.Config;
|
||||
using Linker.Plugins.Signin.Messenger;
|
||||
using Linker.Server;
|
||||
using Linker.Libs;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.client.args;
|
||||
using linker.client.config;
|
||||
using linker.config;
|
||||
using linker.plugins.signin.messenger;
|
||||
using linker.server;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using MemoryPack;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace Linker.Client
|
||||
namespace linker.client
|
||||
{
|
||||
/// <summary>
|
||||
/// 登入
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
using Linker.Libs;
|
||||
using Linker.Startup;
|
||||
using linker.libs;
|
||||
using linker.startup;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Reflection;
|
||||
using Linker.Client.Args;
|
||||
using Linker.Client.Config;
|
||||
using Linker.Config;
|
||||
using linker.client.args;
|
||||
using linker.client.config;
|
||||
using linker.config;
|
||||
|
||||
namespace Linker.Client
|
||||
namespace linker.client
|
||||
{
|
||||
/// <summary>
|
||||
/// 客户端插件
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Linker.Client.Args
|
||||
namespace linker.client.args
|
||||
{
|
||||
public interface ISignInArgs
|
||||
{
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using Linker.Config;
|
||||
using Linker.Libs;
|
||||
using linker.config;
|
||||
using linker.libs;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
|
||||
namespace Linker.Client.Args
|
||||
namespace linker.client.args
|
||||
{
|
||||
public sealed class SignInArgsTransfer
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Linker.Libs.Api;
|
||||
using linker.libs.api;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Linker.Client.Capi
|
||||
namespace linker.client.capi
|
||||
{
|
||||
public interface IApiClientController : IApiController
|
||||
{
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using Linker.Config;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.config;
|
||||
using linker.libs.extends;
|
||||
using LiteDB;
|
||||
using MemoryPack;
|
||||
using System.Net;
|
||||
|
||||
namespace Linker.Client.Config
|
||||
namespace linker.client.config
|
||||
{
|
||||
public sealed partial class RunningConfigInfo
|
||||
{
|
||||
@@ -32,7 +32,7 @@ namespace Linker.Client.Config
|
||||
}
|
||||
}
|
||||
|
||||
namespace Linker.Config
|
||||
namespace linker.config
|
||||
{
|
||||
public sealed partial class ConfigInfo
|
||||
{
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using Linker.Store;
|
||||
using Linker.Libs;
|
||||
using linker.store;
|
||||
using linker.libs;
|
||||
using LiteDB;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Linker.Client.Config
|
||||
namespace linker.client.config
|
||||
{
|
||||
public sealed class RunningConfig
|
||||
{
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using Linker.Libs;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using System.Reflection;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Linker.Config
|
||||
namespace linker.config
|
||||
{
|
||||
public sealed class ConfigWrap
|
||||
{
|
||||
|
||||
@@ -16,15 +16,15 @@
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<EnablePreviewFeatures>true</EnablePreviewFeatures>
|
||||
<ServerGarbageCollection>false</ServerGarbageCollection>
|
||||
<Title>Linker</Title>
|
||||
<Title>linker</Title>
|
||||
<Version>1.1.0</Version>
|
||||
<Authors>snltty</Authors>
|
||||
<Company>snltty</Company>
|
||||
<Description>Linker</Description>
|
||||
<Description>linker</Description>
|
||||
<Copyright>snltty</Copyright>
|
||||
<PackageProjectUrl>https://github.com/snltty/Linker</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/snltty/Linker</RepositoryUrl>
|
||||
<PackageReleaseNotes>Linker</PackageReleaseNotes>
|
||||
<PackageProjectUrl>https://github.com/snltty/linker</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/snltty/linker</RepositoryUrl>
|
||||
<PackageReleaseNotes>linker</PackageReleaseNotes>
|
||||
<AssemblyVersion>1.1.0.1</AssemblyVersion>
|
||||
<FileVersion>1.1.0.1</FileVersion>
|
||||
</PropertyGroup>
|
||||
@@ -49,7 +49,7 @@
|
||||
<None Update="plugins\tuntap\tun2socks.exe" Condition="'$(Configuration)'=='Debug'">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="plugins\tuntap\wintun.dll" Condition="'$(RuntimeIdentifier)'=='win-x64' or '$(RuntimeIdentifier)'=='win-arm64' or '$(Configuration)'=='Debug'">
|
||||
<None Update="Plugins\Tuntap\wintun.dll" Condition="'$(RuntimeIdentifier)'=='win-x64' or '$(RuntimeIdentifier)'=='win-arm64' or '$(Configuration)'=='Debug'">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="configs\common.json">
|
||||
@@ -60,8 +60,8 @@
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Linker.tunnel\Linker.Tunnel.csproj" />
|
||||
<ProjectReference Include="..\Linker.Libs\Linker.Libs.csproj" />
|
||||
<ProjectReference Include="..\linker.tunnel\linker.tunnel.csproj" />
|
||||
<ProjectReference Include="..\linker.libs\linker.libs.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="LiteDB" Version="5.0.17" />
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using Linker.Client.Capi;
|
||||
using Linker.Config;
|
||||
using Linker.Libs;
|
||||
using Linker.Libs.Api;
|
||||
using linker.client.capi;
|
||||
using linker.config;
|
||||
using linker.libs;
|
||||
using linker.libs.api;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Linker.Plugins.Capi
|
||||
namespace linker.plugins.capi
|
||||
{
|
||||
/// <summary>
|
||||
/// 前段接口服务
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using Linker.Client.Capi;
|
||||
using Linker.Config;
|
||||
using Linker.Startup;
|
||||
using Linker.Libs;
|
||||
using linker.client.capi;
|
||||
using linker.config;
|
||||
using linker.startup;
|
||||
using linker.libs;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Linker.Plugins.Capi
|
||||
namespace linker.plugins.capi
|
||||
{
|
||||
public sealed class CApiStartup : IStartup
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Linker.Libs.Web;
|
||||
using linker.libs.web;
|
||||
|
||||
namespace Linker.Plugins.Capi
|
||||
namespace linker.plugins.capi
|
||||
{
|
||||
public interface IWebClientServer : IWebServer
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Linker.Libs;
|
||||
using linker.libs;
|
||||
|
||||
namespace Linker.Config
|
||||
namespace linker.config
|
||||
{
|
||||
public partial class ConfigClientInfo
|
||||
{
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
using Linker.Client.Capi;
|
||||
using Linker.Plugins.Relay;
|
||||
using Linker.Tunnel;
|
||||
using Linker.Tunnel.Connection;
|
||||
using Linker.Libs;
|
||||
using Linker.Libs.Api;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.client.capi;
|
||||
using linker.plugins.relay;
|
||||
using linker.tunnel;
|
||||
using linker.tunnel.connection;
|
||||
using linker.libs;
|
||||
using linker.libs.api;
|
||||
using linker.libs.extends;
|
||||
using System.Collections.Concurrent;
|
||||
|
||||
namespace Linker.Plugins.Connections
|
||||
namespace linker.plugins.connections
|
||||
{
|
||||
public sealed class ConnectionsApiController : IApiClientController
|
||||
{
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using Linker.Config;
|
||||
using Linker.Startup;
|
||||
using linker.config;
|
||||
using linker.startup;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Linker.Plugins.Connections
|
||||
namespace linker.plugins.connections
|
||||
{
|
||||
public sealed class ConnectionsStartup : IStartup
|
||||
{
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using Linker.Config;
|
||||
using Linker.Startup;
|
||||
using linker.config;
|
||||
using linker.startup;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Linker.Plugins.Firewall
|
||||
namespace linker.plugins.firewall
|
||||
{
|
||||
public sealed class FireWallStartup : IStartup
|
||||
{
|
||||
@@ -17,7 +17,7 @@ namespace Linker.Plugins.Firewall
|
||||
{
|
||||
#if DEBUG
|
||||
#else
|
||||
Linker.Libs.FireWallHelper.Write(Path.GetFileNameWithoutExtension(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName), "./plugins/firewall");
|
||||
linker.libs.FireWallHelper.Write(Path.GetFileNameWithoutExtension(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName), "./plugins/firewall");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using Linker.Libs.Api;
|
||||
using Linker.Libs.Extends;
|
||||
using Linker.Client.Capi;
|
||||
using Linker.Client.Config;
|
||||
using linker.libs.api;
|
||||
using linker.libs.extends;
|
||||
using linker.client.capi;
|
||||
using linker.client.config;
|
||||
using System.Net;
|
||||
using Linker.Libs;
|
||||
using linker.libs;
|
||||
|
||||
namespace Linker.Plugins.Forward
|
||||
namespace linker.plugins.forward
|
||||
{
|
||||
public sealed class ForwardClientApiController : IApiClientController
|
||||
{
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using Linker.Config;
|
||||
using Linker.Plugins.Forward.Proxy;
|
||||
using Linker.Startup;
|
||||
using linker.config;
|
||||
using linker.plugins.forward.proxy;
|
||||
using linker.startup;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Linker.Plugins.Forward
|
||||
namespace linker.plugins.forward
|
||||
{
|
||||
public sealed class ForwardStartup : IStartup
|
||||
{
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using Linker.Client;
|
||||
using Linker.Client.Config;
|
||||
using Linker.Libs;
|
||||
using Linker.Plugins.Forward.Proxy;
|
||||
using linker.client;
|
||||
using linker.client.config;
|
||||
using linker.libs;
|
||||
using linker.plugins.forward.proxy;
|
||||
|
||||
namespace Linker.Plugins.Forward
|
||||
namespace linker.plugins.forward
|
||||
{
|
||||
public sealed class ForwardTransfer
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Net;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Linker.Client.Config
|
||||
namespace linker.client.config
|
||||
{
|
||||
public sealed partial class RunningConfigInfo
|
||||
{
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
using Linker.Config;
|
||||
using Linker.Plugins.Relay;
|
||||
using Linker.Tunnel;
|
||||
using Linker.Tunnel.Connection;
|
||||
using Linker.Tunnel.Proxy;
|
||||
using Linker.Libs;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.config;
|
||||
using linker.plugins.relay;
|
||||
using linker.tunnel;
|
||||
using linker.tunnel.connection;
|
||||
using linker.tunnel.proxy;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Net;
|
||||
|
||||
namespace Linker.Plugins.Forward.Proxy
|
||||
namespace linker.plugins.forward.proxy
|
||||
{
|
||||
public sealed class ForwardProxy : TunnelProxy
|
||||
{
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using Linker.Libs.Extends;
|
||||
using Linker.Libs.Api;
|
||||
using Linker.Libs;
|
||||
using Linker.Config;
|
||||
using Linker.Client.Capi;
|
||||
using linker.libs.extends;
|
||||
using linker.libs.api;
|
||||
using linker.libs;
|
||||
using linker.config;
|
||||
using linker.client.capi;
|
||||
|
||||
namespace Linker.Plugins.Logger
|
||||
namespace linker.plugins.logger
|
||||
{
|
||||
public sealed class LoggerClientApiController : IApiClientController
|
||||
{
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using Linker.Config;
|
||||
using Linker.Startup;
|
||||
using linker.config;
|
||||
using linker.startup;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Linker.Plugins.Logger
|
||||
namespace linker.plugins.logger
|
||||
{
|
||||
public sealed class LoggerStartup : IStartup
|
||||
{
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
using Linker.Client;
|
||||
using Linker.Client.Capi;
|
||||
using Linker.Config;
|
||||
using Linker.Plugins.Relay.Messenger;
|
||||
using Linker.Server;
|
||||
using Linker.Libs.Api;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.client;
|
||||
using linker.client.capi;
|
||||
using linker.config;
|
||||
using linker.plugins.relay.messenger;
|
||||
using linker.server;
|
||||
using linker.libs.api;
|
||||
using linker.libs.extends;
|
||||
using MemoryPack;
|
||||
|
||||
namespace Linker.Plugins.Relay
|
||||
namespace linker.plugins.relay
|
||||
{
|
||||
/// <summary>
|
||||
/// 中继管理接口
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using Linker.Config;
|
||||
using Linker.Plugins.Relay.Messenger;
|
||||
using Linker.Plugins.Relay.Transport;
|
||||
using Linker.Startup;
|
||||
using linker.config;
|
||||
using linker.plugins.relay.messenger;
|
||||
using linker.plugins.relay.transport;
|
||||
using linker.startup;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Linker.Plugins.Relay
|
||||
namespace linker.plugins.relay
|
||||
{
|
||||
/// <summary>
|
||||
/// 中继插件
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
using Linker.Client.Config;
|
||||
using Linker.Config;
|
||||
using Linker.Plugins.Relay.Transport;
|
||||
using Linker.Tunnel.Connection;
|
||||
using Linker.Libs;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.client.config;
|
||||
using linker.config;
|
||||
using linker.plugins.relay.transport;
|
||||
using linker.tunnel.connection;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Net;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Linker.Plugins.Relay
|
||||
namespace linker.plugins.relay
|
||||
{
|
||||
/// <summary>
|
||||
/// 中继
|
||||
@@ -35,7 +35,7 @@ namespace Linker.Plugins.Relay
|
||||
{
|
||||
new RelayCompactInfo{
|
||||
Name="默认",
|
||||
Type= RelayCompactType.Linker,
|
||||
Type= RelayCompactType.linker,
|
||||
Disabled = false,
|
||||
Host = running.Data.Client.Servers.FirstOrDefault().Host
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using Linker.Config;
|
||||
using linker.config;
|
||||
using LiteDB;
|
||||
using MemoryPack;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
|
||||
namespace Linker.Client.Config
|
||||
namespace linker.client.config
|
||||
{
|
||||
public sealed partial class RunningConfigInfo
|
||||
{
|
||||
@@ -19,7 +19,7 @@ namespace Linker.Client.Config
|
||||
}
|
||||
|
||||
|
||||
namespace Linker.Config
|
||||
namespace linker.config
|
||||
{
|
||||
public partial class ConfigServerInfo
|
||||
{
|
||||
@@ -36,7 +36,7 @@ namespace Linker.Config
|
||||
public sealed partial class RelayCompactInfo
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public RelayCompactType Type { get; set; } = RelayCompactType.Linker;
|
||||
public RelayCompactType Type { get; set; } = RelayCompactType.linker;
|
||||
public string SecretKey { get; set; } = "snltty";
|
||||
public string Host { get; set; } = string.Empty;
|
||||
public bool Disabled { get; set; }
|
||||
@@ -45,7 +45,7 @@ namespace Linker.Config
|
||||
|
||||
public enum RelayCompactType : byte
|
||||
{
|
||||
Linker = 0,
|
||||
linker = 0,
|
||||
}
|
||||
|
||||
public sealed class RelayCompactTypeInfo
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
using Linker.Config;
|
||||
using Linker.Plugins.Relay.Transport;
|
||||
using Linker.Plugins.Signin.Messenger;
|
||||
using Linker.Server;
|
||||
using Linker.Libs;
|
||||
using Linker.Libs.Extends;
|
||||
using linker.config;
|
||||
using linker.plugins.relay.transport;
|
||||
using linker.plugins.signin.messenger;
|
||||
using linker.server;
|
||||
using linker.libs;
|
||||
using MemoryPack;
|
||||
using System.Collections.Concurrent;
|
||||
|
||||
namespace Linker.Plugins.Relay.Messenger
|
||||
namespace linker.plugins.relay.messenger
|
||||
{
|
||||
/// <summary>
|
||||
/// 中继客户端
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user