diff --git a/lib/tun2/server.go b/lib/tun2/server.go index 50fd649..342ed9b 100644 --- a/lib/tun2/server.go +++ b/lib/tun2/server.go @@ -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{