浏览代码

chore: reduce timeout intervals

It improves reconnectiblity in the case of server restarts where all connected
clients are kicked out and expected to reconnect in a timely manner.
Mustafa Arici 7 年之前
父节点
当前提交
10c0f702db
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      template/client.ovpn.tmpl
  2. 1 1
      template/server.conf.tmpl

+ 1 - 1
template/client.ovpn.tmpl

@@ -9,7 +9,7 @@ resolv-retry infinite
 ns-cert-type server
 cipher AES-128-CBC
 nobind
-keepalive 2 20
+keepalive 2 4
 persist-key
 persist-tun
 comp-lzo

+ 1 - 1
template/server.conf.tmpl

@@ -213,7 +213,7 @@ client-to-client
 # peer is down if no ping received during
 # a 120 second time period.
 ;keepalive 10 120
-keepalive 2 20
+keepalive 2 4
 
 # For extra security beyond that provided
 # by SSL/TLS, create an "HMAC firewall"