tun2: be less greedy about failure checking

This commit is contained in:
Cadey Ratio 2017-04-05 14:40:37 -07:00
parent 116c3e6516
commit 35d2d72e7f
1 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ func (s *Server) ListenAndServe() error {
go func() {
for {
time.Sleep(time.Second)
time.Sleep(5 * time.Second)
now := time.Now()
@ -318,7 +318,7 @@ func (s *Server) HandleConn(c net.Conn, isKCP bool) {
user: defaultUser, // XXX RIP replace this with the actual token user once users are implemented
domain: auth.Domain,
cancel: cancel,
detector: failure.New(15, 3),
detector: failure.New(15, 1),
}
ln.Log(ln.F{