新增基于端口映射的打洞协议和修复端口转发潜在BUG

This commit is contained in:
snltty
2024-07-27 01:17:42 +08:00
parent 0e741e46d3
commit 559cae4dd3
13 changed files with 55 additions and 19 deletions

View File

@@ -48,16 +48,16 @@ jobs:
env:
GITHUB_TOKEN: '${{ secrets.ACTIONS_TOKEN }}'
with:
tag_name: v1.2.0.0
release_name: v1.2.0.0.${{ steps.date.outputs.today }}
tag_name: v1.2.0.1
release_name: v1.2.0.1.${{ steps.date.outputs.today }}
draft: false
prerelease: false
body: |
1. 托盘检查
2. 停止服务清理网卡
3. 打洞错误
4. 网关层级计算修复(在linux下计算错误导致打洞失败)
5. 修复在IPV6环境下域名解析缓慢问题
1. 网关层级计算修复(在linux下计算错误导致打洞失败)
2. 修复在IPV6环境下域名解析缓慢问题
3. 新增基于端口映射的打洞协议
4. 修复端口转发潜在BUG
5. 请更新服务端
- name: upload win x64
id: upload-win-x64

View File

@@ -14,7 +14,13 @@ sidebar_position: 1
6. 打洞失败回退、这需要你中继部署服务器进行中继通信
7. 少量的内存占用、易用的web管理页面、高性能的通信
<a href="https://jq.qq.com/?_wv=1027&k=ucoIVfz4" target="_blank">你可以加入QQ群1121552990 </a>
:::tip[加入组织]
<a href="https://jq.qq.com/?_wv=1027&k=ucoIVfz4" target="_blank">你可以加入QQ群1121552990可以申请一些免费的中继服务器 </a>
:::
## 2、感谢支持

View File

@@ -7,7 +7,7 @@ sidebar_position: 1
## 1、支持msquic
1. 在windows如果提示不支持msquic可以到 <a target="_blank" href="https://github.com/microsoft/msquic/releases/latest">msquic</a> 下载合适你系统的版本覆盖根目录下的msquic.dll一般来说win10或以下版本需要openssl版本的msquic
2. linux请按<a target="_blank" href="https://github.com/dotnet/runtime/tree/main/src/libraries/System.Net.Quic">官方说明</a>安装msquic
2. linux请按<a target="_blank" href="https://github.com/dotnet/runtime/tree/main/src/libraries/System.Net.Quic">官方说明</a>安装msquic
## 2、打洞协议调整

View File

@@ -4,7 +4,13 @@ sidebar_position: 2
# 4.2、中继
在打洞失败后,会自动尝试中继,中继需要服务器支持,需要配置服务器中继密钥
:::tip[说明]
在打洞失败后,会尝试中继连接,中继需要服务器支持
:::
## 1、配置中继密钥

View File

@@ -0,0 +1,24 @@
---
sidebar_position: 3
---
# 4.3、端口映射
:::tip[说明]
这适合什么场景呢你有公网IP你可以在光猫映射端口但是你希望只用一个端口去访问多个服务
:::
## 2、打洞协议调整
在光猫配置好端口映射后,填写你的映射端口,两台将要连接的设备之间,有一台做映射即可。
![Docusaurus Plushie](./img/portmap.png)
![Docusaurus Plushie](./img/portmap1.png)
## 3、调整打洞协议的顺序
确保支持这种连接方式的打洞协议(**TcpPortMap**)排在第一位,这样才会优先去连接你的映射端口
![Docusaurus Plushie](./img/portmap2.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

View File

@@ -15,8 +15,8 @@
<PackageProjectUrl>https://github.com/snltty/linker</PackageProjectUrl>
<RepositoryUrl>https://github.com/snltty/linker</RepositoryUrl>
<Version>1.2.0</Version>
<AssemblyVersion>1.2.0.0</AssemblyVersion>
<FileVersion>1.2.0.0</FileVersion>
<AssemblyVersion>1.2.0.1</AssemblyVersion>
<FileVersion>1.2.0.1</FileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>full</DebugType>

View File

@@ -22,8 +22,8 @@
<PackageProjectUrl>https://github.com/snltty/linker</PackageProjectUrl>
<RepositoryUrl>https://github.com/snltty/linker</RepositoryUrl>
<PackageReleaseNotes>snltty service</PackageReleaseNotes>
<AssemblyVersion>1.2.0.0</AssemblyVersion>
<FileVersion>1.2.0.0</FileVersion>
<AssemblyVersion>1.2.0.1</AssemblyVersion>
<FileVersion>1.2.0.1</FileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

View File

@@ -17,8 +17,8 @@
<PackageProjectUrl>https://github.com/snltty/linker</PackageProjectUrl>
<RepositoryUrl>https://github.com/snltty/linker</RepositoryUrl>
<PackageReleaseNotes>linker tunnel</PackageReleaseNotes>
<AssemblyVersion>1.2.0.0</AssemblyVersion>
<FileVersion>1.2.0.0</FileVersion>
<AssemblyVersion>1.2.0.1</AssemblyVersion>
<FileVersion>1.2.0.1</FileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

View File

@@ -20,7 +20,7 @@
</el-row>
</el-form-item>
<el-form-item label="" prop="alert">
<div>光猫映射了端口后可以直接连接需要把TcpPortMap调到第一</div>
<div>光猫映射了端口后可以直接连接把TcpPortMap调到第一</div>
</el-form-item>
<el-form-item label="">
<el-row>

View File

@@ -25,8 +25,8 @@
<PackageProjectUrl>https://github.com/snltty/linker</PackageProjectUrl>
<RepositoryUrl>https://github.com/snltty/linker</RepositoryUrl>
<PackageReleaseNotes>linker</PackageReleaseNotes>
<AssemblyVersion>1.2.0.0</AssemblyVersion>
<FileVersion>1.2.0.0</FileVersion>
<AssemblyVersion>1.2.0.1</AssemblyVersion>
<FileVersion>1.2.0.1</FileVersion>
</PropertyGroup>