rename
2
.github/workflows/docker.yml
vendored
@@ -36,7 +36,7 @@ jobs:
|
||||
|
||||
- name: restore projects
|
||||
run:
|
||||
dotnet restore ./cmonitor
|
||||
dotnet restore ./linker
|
||||
|
||||
- name: docker login
|
||||
uses: docker/login-action@v2.1.0
|
||||
|
||||
36
README.md
@@ -6,18 +6,18 @@
|
||||
* @LastEditTime: 2022-11-21 16:36:26
|
||||
* @version: v1.0.0
|
||||
* @Descripttion: 功能说明
|
||||
* @FilePath: \client.service.ui.webd:\desktop\link\README.md
|
||||
* @FilePath: \client.service.ui.webd:\desktop\linker\README.md
|
||||
-->
|
||||
<div align="center">
|
||||
<p><img src="./readme/logo.png" height="150"></p>
|
||||
|
||||
# link
|
||||
# linker
|
||||
|
||||
|
||||

|
||||

|
||||
[](https://gitee.com/snltty/link/stargazers)
|
||||
[](https://gitee.com/snltty/link/members)
|
||||

|
||||

|
||||
[](https://gitee.com/snltty/linker/stargazers)
|
||||
[](https://gitee.com/snltty/linker/members)
|
||||
|
||||
<a href="https://jq.qq.com/?_wv=1027&k=ucoIVfz4" target="_blank">QQ 群:1121552990</a>
|
||||
|
||||
@@ -92,26 +92,26 @@ server.json
|
||||
|
||||
##### 1、windows
|
||||
```
|
||||
使用 link.tray.win.exe
|
||||
使用 linker.tray.win.exe
|
||||
```
|
||||
|
||||
##### 2、linux systemd
|
||||
```
|
||||
//1、下载linux版本程序,放到 /usr/local/link 文件夹,并在文件夹下创建一个 log 目录
|
||||
//1、下载linux版本程序,放到 /usr/local/linker 文件夹,并在文件夹下创建一个 log 目录
|
||||
|
||||
//2、 修改文件权限
|
||||
chmod 0777 link
|
||||
chmod 0777 linker
|
||||
chmoe 0777 plugins/tuntap/tun2socks
|
||||
|
||||
//3、写配置文件
|
||||
vim /etc/systemd/system/link.service
|
||||
vim /etc/systemd/system/linker.service
|
||||
|
||||
[Unit]
|
||||
Description=link
|
||||
Description=linker
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/usr/local/link
|
||||
ExecStart=/usr/local/link/link
|
||||
WorkingDirectory=/usr/local/linker
|
||||
ExecStart=/usr/local/linker/linker
|
||||
ExecStop=/bin/kill $MAINPID
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=always
|
||||
@@ -124,17 +124,17 @@ WantedBy=multi-user.target
|
||||
systemctl daemon-reload
|
||||
|
||||
//5、启动,或者重新启动
|
||||
systemctl start link
|
||||
systemctl restart link
|
||||
systemctl start linker
|
||||
systemctl restart linker
|
||||
|
||||
//6、设置为自启动
|
||||
systemctl enable link
|
||||
systemctl enable linker
|
||||
```
|
||||
|
||||
##### linux docker
|
||||
```
|
||||
snltty/link-alpine-x64
|
||||
snltty/link-alpine-arm64
|
||||
snltty/linker-alpine-x64
|
||||
snltty/linker-alpine-arm64
|
||||
```
|
||||
|
||||
## 发布项目
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace link.libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public static class BooleanHelper
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
|
||||
namespace link.libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public sealed class CommandHelper
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace link.libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public static class FireWallHelper
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace link.libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public static class GCHelper
|
||||
{
|
||||
@@ -3,7 +3,7 @@ using System.Runtime.InteropServices;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace link.libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public static class Helper
|
||||
{
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Concurrent;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace link.libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public sealed class Logger
|
||||
{
|
||||
@@ -6,7 +6,7 @@ using System.Net.NetworkInformation;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
|
||||
namespace link.libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public static class NetworkHelper
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Threading;
|
||||
|
||||
namespace link.libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public sealed class NumberSpace
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace link.libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public sealed class ReceiveDataBuffer
|
||||
{
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
|
||||
namespace link.libs
|
||||
namespace linker.libs
|
||||
{
|
||||
public sealed class ReflectionHelper
|
||||
{
|
||||
@@ -1,5 +1,5 @@
|
||||
using link.libs.extends;
|
||||
using link.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 link.libs.api
|
||||
namespace linker.libs.api
|
||||
{
|
||||
/// <summary>
|
||||
/// 前段接口服务
|
||||
@@ -1,8 +1,8 @@
|
||||
using link.libs.websocket;
|
||||
using linker.libs.websocket;
|
||||
using System;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace link.libs.api
|
||||
namespace linker.libs.api
|
||||
{
|
||||
/// <summary>
|
||||
/// 前段接口
|
||||
@@ -1,7 +1,7 @@
|
||||
using link.libs.websocket;
|
||||
using linker.libs.websocket;
|
||||
using System;
|
||||
|
||||
namespace link.libs.api
|
||||
namespace linker.libs.api
|
||||
{
|
||||
/// <summary>
|
||||
/// 前端接口服务
|
||||
@@ -3,7 +3,7 @@ using System.Buffers.Binary;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
|
||||
namespace link.libs.extends
|
||||
namespace linker.libs.extends
|
||||
{
|
||||
public static class IPEndPointExtends
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace link.libs.extends
|
||||
namespace linker.libs.extends
|
||||
{
|
||||
public static class NumberExtends
|
||||
{
|
||||
@@ -1,8 +1,8 @@
|
||||
using link.libs.jsonConverters;
|
||||
using linker.libs.jsonConverters;
|
||||
using System.Text.Json;
|
||||
using System.Text.Unicode;
|
||||
|
||||
namespace link.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 link.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 link.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 link.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 link.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 link.libs.jsonConverters
|
||||
namespace linker.libs.jsonConverters
|
||||
{
|
||||
public sealed class IPEndpointJsonConverter : JsonConverter<IPEndPoint>
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace link.libs.socks5
|
||||
namespace linker.libs.socks5
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据验证结果
|
||||
@@ -1,11 +1,11 @@
|
||||
using link.libs.extends;
|
||||
using linker.libs.extends;
|
||||
using System;
|
||||
using System.Buffers;
|
||||
using System.Buffers.Binary;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
|
||||
namespace link.libs.socks5
|
||||
namespace linker.libs.socks5
|
||||
{
|
||||
/// <summary>
|
||||
/// socks5 数据包解析和组装
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace link.libs.web
|
||||
namespace linker.libs.web
|
||||
{
|
||||
/// <summary>
|
||||
/// web服务
|
||||
@@ -4,7 +4,7 @@ using System.IO;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace link.libs.web
|
||||
namespace linker.libs.web
|
||||
{
|
||||
/// <summary>
|
||||
/// 本地web管理端服务器
|
||||
@@ -1,11 +1,11 @@
|
||||
using link.libs;
|
||||
using link.libs.extends;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace link.libs.websocket
|
||||
namespace linker.libs.websocket
|
||||
{
|
||||
/// <summary>
|
||||
/// wensocket客户端
|
||||
@@ -1,4 +1,4 @@
|
||||
using link.libs;
|
||||
using linker.libs;
|
||||
using System;
|
||||
using System.Buffers;
|
||||
using System.Buffers.Binary;
|
||||
@@ -6,7 +6,7 @@ using System.Net;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
||||
namespace link.libs.websocket
|
||||
namespace linker.libs.websocket
|
||||
{
|
||||
/// <summary>
|
||||
/// websocket解析器
|
||||
@@ -1,5 +1,5 @@
|
||||
using link.libs;
|
||||
using link.libs.extends;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
@@ -8,7 +8,7 @@ using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
|
||||
namespace link.libs.websocket
|
||||
namespace linker.libs.websocket
|
||||
{
|
||||
/// <summary>
|
||||
/// websocket服务端
|
||||
@@ -3,7 +3,7 @@ using System.Runtime.InteropServices;
|
||||
using System.Security;
|
||||
using System.Text;
|
||||
|
||||
namespace link.libs.winapis;
|
||||
namespace linker.libs.winapis;
|
||||
|
||||
public static unsafe class ADVAPI32
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace link.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 link.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 link.libs.winapis
|
||||
namespace linker.libs.winapis
|
||||
{
|
||||
public static class MSvcrt
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace link.libs.winapis
|
||||
namespace linker.libs.winapis
|
||||
{
|
||||
public static class NetApi32
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace link.libs.winapis
|
||||
namespace linker.libs.winapis
|
||||
{
|
||||
internal class Powrprof
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Runtime.InteropServices;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
|
||||
namespace link.libs.winapis;
|
||||
namespace linker.libs.winapis;
|
||||
|
||||
public static class SECUR32
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace link.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 link.libs.winapis;
|
||||
namespace linker.libs.winapis;
|
||||
|
||||
public static class User32
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security;
|
||||
|
||||
namespace link.libs.winapis;
|
||||
namespace linker.libs.winapis;
|
||||
|
||||
public static class WTSAPI32
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
using link.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 link.libs.winapis.WTSAPI32;
|
||||
using static link.libs.winapis.ADVAPI32;
|
||||
using static link.libs.winapis.Kernel32;
|
||||
using static link.libs.winapis.NetApi32;
|
||||
using static link.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 link.libs.winapis
|
||||
namespace linker.libs.winapis
|
||||
{
|
||||
public class Win32Interop
|
||||
{
|
||||
@@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Net;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace link.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 link.libs.winapis
|
||||
namespace linker.libs.winapis
|
||||
{
|
||||
public static class Wlanapi
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace link.service
|
||||
namespace linker.service
|
||||
{
|
||||
partial class LinkService
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Diagnostics;
|
||||
using System.ServiceProcess;
|
||||
|
||||
namespace link.service
|
||||
namespace linker.service
|
||||
{
|
||||
partial class LinkService : ServiceBase
|
||||
{
|
||||
@@ -12,7 +12,7 @@ namespace link.service
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private string mainExeName = "link";
|
||||
private string mainExeName = "linker";
|
||||
private CancellationTokenSource cancellationTokenSource = new CancellationTokenSource();
|
||||
|
||||
protected override void OnStart(string[] _args)
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.ServiceProcess;
|
||||
|
||||
namespace link.service
|
||||
namespace linker.service
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
@@ -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}") = "link", "link\link.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}") = "link.libs", "link.libs\link.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}") = "link.tests", "link.tests\link.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}") = "link.service", "link.service\link.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}") = "link.tunnel", "link.tunnel\link.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 link.serializes;
|
||||
using link.tunnel.connection;
|
||||
using link.tunnel.transport;
|
||||
using linker.serializes;
|
||||
using linker.tunnel.connection;
|
||||
using linker.tunnel.transport;
|
||||
using MemoryPack;
|
||||
using System.Net;
|
||||
|
||||
namespace link.tests
|
||||
namespace linker.tests
|
||||
{
|
||||
[TestClass]
|
||||
public class MemoryPackIPEndPointSerialize
|
||||
@@ -19,7 +19,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\link\link.csproj" />
|
||||
<ProjectReference Include="..\linker\linker.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
@@ -1,16 +1,16 @@
|
||||
using link.tunnel.adapter;
|
||||
using link.tunnel.compact;
|
||||
using link.tunnel.connection;
|
||||
using link.tunnel.transport;
|
||||
using link.libs;
|
||||
using link.libs.extends;
|
||||
using linker.tunnel.adapter;
|
||||
using linker.tunnel.compact;
|
||||
using linker.tunnel.connection;
|
||||
using linker.tunnel.transport;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Net.Sockets;
|
||||
using System.Net;
|
||||
using System.Reflection;
|
||||
|
||||
namespace link.tunnel
|
||||
namespace linker.tunnel
|
||||
{
|
||||
public sealed class TunnelTransfer
|
||||
{
|
||||
@@ -1,9 +1,9 @@
|
||||
using link.tunnel.compact;
|
||||
using link.tunnel.transport;
|
||||
using linker.tunnel.compact;
|
||||
using linker.tunnel.transport;
|
||||
using System.Net;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
|
||||
namespace link.tunnel.adapter
|
||||
namespace linker.tunnel.adapter
|
||||
{
|
||||
public interface ITunnelAdapter
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Net;
|
||||
|
||||
namespace link.tunnel.compact
|
||||
namespace linker.tunnel.compact
|
||||
{
|
||||
/// <summary>
|
||||
/// 外网端口协议
|
||||
@@ -1,8 +1,8 @@
|
||||
using link.libs.extends;
|
||||
using linker.libs.extends;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace link.tunnel.compact
|
||||
namespace linker.tunnel.compact
|
||||
{
|
||||
public sealed class TunnelCompactSelfHost : ITunnelCompact
|
||||
{
|
||||
@@ -1,9 +1,9 @@
|
||||
using link.libs.extends;
|
||||
using linker.libs.extends;
|
||||
using System.Buffers.Binary;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace link.tunnel.compact
|
||||
namespace linker.tunnel.compact
|
||||
{
|
||||
public sealed class TunnelCompactStun : ITunnelCompact
|
||||
{
|
||||
@@ -1,12 +1,12 @@
|
||||
using link.tunnel.adapter;
|
||||
using link.libs;
|
||||
using link.libs.extends;
|
||||
using linker.tunnel.adapter;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Diagnostics;
|
||||
using System.Net;
|
||||
using System.Reflection;
|
||||
|
||||
namespace link.tunnel.compact
|
||||
namespace linker.tunnel.compact
|
||||
{
|
||||
/// <summary>
|
||||
/// 外网端口协议
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Net;
|
||||
|
||||
namespace link.tunnel.connection
|
||||
namespace linker.tunnel.connection
|
||||
{
|
||||
/// <summary>
|
||||
/// 隧道协议
|
||||
@@ -1,5 +1,5 @@
|
||||
using link.libs.extends;
|
||||
using link.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 link.tunnel.connection
|
||||
namespace linker.tunnel.connection
|
||||
{
|
||||
/// <summary>
|
||||
/// msquic
|
||||
@@ -1,5 +1,5 @@
|
||||
using link.libs;
|
||||
using link.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 link.tunnel.connection
|
||||
namespace linker.tunnel.connection
|
||||
{
|
||||
public sealed class TunnelConnectionTcp : ITunnelConnection
|
||||
{
|
||||
@@ -1,12 +1,12 @@
|
||||
using link.libs.extends;
|
||||
using link.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 link.tunnel.connection
|
||||
namespace linker.tunnel.connection
|
||||
{
|
||||
public sealed class TunnelConnectionUdp : ITunnelConnection
|
||||
{
|
||||
@@ -11,7 +11,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\link.libs\link.libs.csproj" />
|
||||
<ProjectReference Include="..\linker.libs\linker.libs.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -1,11 +1,11 @@
|
||||
using link.tunnel.connection;
|
||||
using link.libs;
|
||||
using link.libs.extends;
|
||||
using linker.tunnel.connection;
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using System.Buffers;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace link.tunnel.proxy
|
||||
namespace linker.tunnel.proxy
|
||||
{
|
||||
public partial class TunnelProxy : ITunnelConnectionReceiveCallback
|
||||
{
|
||||
@@ -1,12 +1,12 @@
|
||||
using link.tunnel.connection;
|
||||
using link.libs;
|
||||
using link.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 link.tunnel.proxy
|
||||
namespace linker.tunnel.proxy
|
||||
{
|
||||
public partial class TunnelProxy
|
||||
{
|
||||
@@ -1,11 +1,11 @@
|
||||
using link.tunnel.connection;
|
||||
using link.libs;
|
||||
using link.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 link.tunnel.proxy
|
||||
namespace linker.tunnel.proxy
|
||||
{
|
||||
public partial class TunnelProxy
|
||||
{
|
||||
@@ -1,8 +1,8 @@
|
||||
using link.tunnel.connection;
|
||||
using linker.tunnel.connection;
|
||||
using System.Net;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace link.tunnel.transport
|
||||
namespace linker.tunnel.transport
|
||||
{
|
||||
public interface ITunnelTransport
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using link.tunnel.adapter;
|
||||
using link.tunnel.connection;
|
||||
using link.libs;
|
||||
using link.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 link.tunnel.transport
|
||||
namespace linker.tunnel.transport
|
||||
{
|
||||
public sealed class TransportMsQuic : ITunnelTransport
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using link.tunnel.adapter;
|
||||
using link.tunnel.connection;
|
||||
using link.libs;
|
||||
using link.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 link.tunnel.transport
|
||||
namespace linker.tunnel.transport
|
||||
{
|
||||
public sealed class TunnelTransportTcpNutssb : ITunnelTransport
|
||||
{
|
||||
@@ -1,12 +1,12 @@
|
||||
using link.tunnel.connection;
|
||||
using link.libs;
|
||||
using link.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 link.tunnel.transport
|
||||
namespace linker.tunnel.transport
|
||||
{
|
||||
public sealed class TransportUdp : ITunnelTransport
|
||||
{
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "cmonitor.web",
|
||||
"name": "linker.web",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |