From d00293aaf99da0042a456d1fd981fbef3b95cd80 Mon Sep 17 00:00:00 2001 From: bjdgyc Date: Sun, 27 Nov 2022 15:41:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=93=BE=E6=8E=A5=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/base/config.go | 8 ++++---- server/conf/server-sample.toml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/server/base/config.go b/server/base/config.go index 607477c..739e4f1 100644 --- a/server/base/config.go +++ b/server/base/config.go @@ -51,10 +51,10 @@ var configs = []config{ {Typ: cfgInt, Name: "ip_lease", Usage: "IP租期(秒)", ValInt: 1209600}, {Typ: cfgInt, Name: "max_client", Usage: "最大用户连接", ValInt: 100}, {Typ: cfgInt, Name: "max_user_client", Usage: "最大单用户连接", ValInt: 3}, - {Typ: cfgInt, Name: "cstp_keepalive", Usage: "keepalive时间(秒)", ValInt: 20}, - {Typ: cfgInt, Name: "cstp_dpd", Usage: "死链接检测时间(秒)", ValInt: 30}, - {Typ: cfgInt, Name: "mobile_keepalive", Usage: "移动端keepalive接检测时间(秒)", ValInt: 50}, - {Typ: cfgInt, Name: "mobile_dpd", Usage: "移动端死链接检测时间(秒)", ValInt: 60}, + {Typ: cfgInt, Name: "cstp_keepalive", Usage: "keepalive时间(秒)", ValInt: 9}, + {Typ: cfgInt, Name: "cstp_dpd", Usage: "死链接检测时间(秒)", ValInt: 15}, + {Typ: cfgInt, Name: "mobile_keepalive", Usage: "移动端keepalive接检测时间(秒)", ValInt: 15}, + {Typ: cfgInt, Name: "mobile_dpd", Usage: "移动端死链接检测时间(秒)", ValInt: 20}, {Typ: cfgInt, Name: "mtu", Usage: "最大传输单元MTU", ValInt: 1460}, {Typ: cfgInt, Name: "session_timeout", Usage: "session过期时间(秒)", ValInt: 3600}, // {Typ: cfgInt, Name: "auth_timeout", Usage: "auth_timeout", ValInt: 0}, diff --git a/server/conf/server-sample.toml b/server/conf/server-sample.toml index cada39b..b9ccd06 100644 --- a/server/conf/server-sample.toml +++ b/server/conf/server-sample.toml @@ -56,10 +56,10 @@ ip_lease = 1209600 default_group = "one" #客户端失效检测时间(秒) dpd > keepalive -cstp_keepalive = 20 -cstp_dpd = 30 -mobile_keepalive = 40 -mobile_dpd = 50 +cstp_keepalive = 9 +cstp_dpd = 15 +mobile_keepalive = 15 +mobile_dpd = 20 #设置最大传输单元 mtu = 1460