diff --git a/app/proxyman/inbound/worker.go b/app/proxyman/inbound/worker.go index c42a5b5a..35b4fda0 100644 --- a/app/proxyman/inbound/worker.go +++ b/app/proxyman/inbound/worker.go @@ -339,7 +339,7 @@ func (w *udpWorker) clean() error { } for addr, conn := range w.activeConn { - if nowSec-atomic.LoadInt64(&conn.lastActivityTime) > 8 { // TODO Timeout too small + if nowSec-atomic.LoadInt64(&conn.lastActivityTime) > 300 { delete(w.activeConn, addr) conn.Close() } @@ -361,7 +361,7 @@ func (w *udpWorker) Start() error { } w.checker = &task.Periodic{ - Interval: time.Second * 16, + Interval: time.Minute, Execute: w.clean, }