mirror of
https://github.com/lwch/natpass.git
synced 2024-04-21 12:41:54 +00:00
Merge branch 'dev'
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# v0.0.1
|
||||
|
||||
实现基本功能
|
||||
|
||||
# v0.1.0
|
||||
|
||||
1. 修改数据包头,增加crc32校验码
|
||||
2. 实现连接池,支持多路IO复用
|
||||
3. 新增读写超时时间配置
|
||||
4. 减少单次forward数据量,提高吞吐量
|
||||
5. 重构部分代码
|
||||
|
||||
**注:由于在包头上增加了crc32校验码,因此v0.0.1版本与v0.1.0版本的程序不能混用**
|
||||
@@ -7,7 +7,7 @@
|
||||
[](https://github.com/lwch/natpass)
|
||||
[](https://jq.qq.com/?_wv=1027&k=6Fz2vkVE)
|
||||
|
||||
内网穿透工具
|
||||
NAT内网穿透工具
|
||||
|
||||
## 实现原理
|
||||
|
||||
@@ -75,6 +75,18 @@ server端配置(10.0.1.1):
|
||||
|
||||
./build
|
||||
|
||||
## 链接配置
|
||||
|
||||
link:
|
||||
connections: 3 # 与server的连接数
|
||||
read_timeout: 1s # 读取数据包超时时间
|
||||
write_timeout: 1s # 发送数据包超时时间
|
||||
|
||||
1. 只有client端可配置connections,client与server总是保持connections个链接
|
||||
2. read_timeout和write_timeout为数据读写超时时间
|
||||
- 建议在server端设置较长的超时时间
|
||||
- 建议在client端设置较短的超时时间
|
||||
|
||||
## linux部署
|
||||
|
||||
1. 将init.d/np-cli和init.d/np-svr拷贝至/etc/init.d目录
|
||||
|
||||
Reference in New Issue
Block a user