mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
update default value of heartbeat_interval and heartbeat_timeout
This commit is contained in:
parent
043ab62587
commit
c80dcd050d
@ -22,11 +22,10 @@ auth_token = 123
|
|||||||
# for privilege mode
|
# for privilege mode
|
||||||
privilege_token = 12345678
|
privilege_token = 12345678
|
||||||
|
|
||||||
# [optional] heartbeat conf
|
# heartbeat configure, it's not recommended to modify the default value
|
||||||
# heartbeat_interval default value is 20, heartbeat_timeout default value is 90
|
# the default value of heartbeat_interval is 10 and heartbeat_timeout is 30
|
||||||
heartbeat_interval = 20
|
# heartbeat_interval = 10
|
||||||
heartbeat_timeout = 90
|
# heartbeat_timeout = 30
|
||||||
|
|
||||||
|
|
||||||
# ssh is the proxy name same as server's configuration
|
# ssh is the proxy name same as server's configuration
|
||||||
[ssh]
|
[ssh]
|
||||||
|
@ -30,9 +30,9 @@ log_max_days = 3
|
|||||||
privilege_mode = true
|
privilege_mode = true
|
||||||
privilege_token = 12345678
|
privilege_token = 12345678
|
||||||
|
|
||||||
# [optional]heartbeat conf
|
# heartbeat configure, it's not recommended to modify the default value
|
||||||
# heartbeat_timeout default value is 90
|
# the default value of heartbeat_timeout is 30
|
||||||
heartbeat_timeout = 90
|
# heartbeat_timeout = 30
|
||||||
|
|
||||||
# only allow frpc to bind ports you list, if you set nothing, there won't be any limit
|
# only allow frpc to bind ports you list, if you set nothing, there won't be any limit
|
||||||
privilege_allow_ports = 2000-3000,3001,3003,4000-50000
|
privilege_allow_ports = 2000-3000,3001,3003,4000-50000
|
||||||
|
@ -33,8 +33,8 @@ var (
|
|||||||
LogLevel string = "info"
|
LogLevel string = "info"
|
||||||
LogMaxDays int64 = 3
|
LogMaxDays int64 = 3
|
||||||
PrivilegeToken string = ""
|
PrivilegeToken string = ""
|
||||||
HeartBeatInterval int64 = 20
|
HeartBeatInterval int64 = 10
|
||||||
HeartBeatTimeout int64 = 90
|
HeartBeatTimeout int64 = 30
|
||||||
)
|
)
|
||||||
|
|
||||||
var ProxyClients map[string]*ProxyClient = make(map[string]*ProxyClient)
|
var ProxyClients map[string]*ProxyClient = make(map[string]*ProxyClient)
|
||||||
|
@ -51,7 +51,7 @@ var (
|
|||||||
// if PrivilegeAllowPorts is not nil, tcp proxies which remote port exist in this map can be connected
|
// if PrivilegeAllowPorts is not nil, tcp proxies which remote port exist in this map can be connected
|
||||||
PrivilegeAllowPorts map[int64]struct{}
|
PrivilegeAllowPorts map[int64]struct{}
|
||||||
MaxPoolCount int64 = 100
|
MaxPoolCount int64 = 100
|
||||||
HeartBeatTimeout int64 = 90
|
HeartBeatTimeout int64 = 30
|
||||||
UserConnTimeout int64 = 10
|
UserConnTimeout int64 = 10
|
||||||
|
|
||||||
VhostHttpMuxer *vhost.HttpMuxer
|
VhostHttpMuxer *vhost.HttpMuxer
|
||||||
|
Loading…
Reference in New Issue
Block a user