mirror of
https://github.com/lwch/natpass.git
synced 2024-04-21 12:41:54 +00:00
增加超时配置
This commit is contained in:
+4
-1
@@ -1,7 +1,10 @@
|
||||
id: this # 客户端ID
|
||||
server: 127.0.0.1:6154 # 服务器地址
|
||||
links: 3 # 与server的连接数
|
||||
secret: 0123456789 # 预共享密钥,必须与server端相同,否则握手失败
|
||||
link:
|
||||
connections: 3 # 与server的连接数
|
||||
read_timeout: 5s # 读取数据包超时时间
|
||||
write_timeout: 5s # 发送数据包超时时间
|
||||
log:
|
||||
dir: ./logs # 路径
|
||||
size: 50M # 单个文件大小
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
listen: 6154 # 监听端口号
|
||||
secret: 0123456789 # 预共享密钥
|
||||
link:
|
||||
read_timeout: 5s # 读取数据包超时时间
|
||||
write_timeout: 5s # 发送数据包超时时间
|
||||
log:
|
||||
dir: ./logs # 路径
|
||||
size: 50M # 单个文件大小
|
||||
|
||||
Reference in New Issue
Block a user