From d3d54d7948d834840ab0af16e28a9f427eb49cd2 Mon Sep 17 00:00:00 2001 From: mmtootmm Date: Mon, 26 Jan 2026 20:13:12 +0900 Subject: [PATCH] ftpd: avoid fresh ftp connection being closed --- internal/common/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/common/common.go b/internal/common/common.go index c6abbd90..3f0901c1 100644 --- a/internal/common/common.go +++ b/internal/common/common.go @@ -1161,7 +1161,7 @@ func (conns *ActiveConnections) checkIdles() { logger.Debug(conn.GetProtocol(), conn.GetID(), "close idle connection, idle time: %s, username: %q close err: %v", time.Since(conn.GetLastActivity()), conn.GetUsername(), err) }(c) - } else if !c.isAccessAllowed() { + } else if !isUnauthenticatedFTPUser && !c.isAccessAllowed() { defer func(conn ActiveConnection) { err := conn.Disconnect() logger.Info(conn.GetProtocol(), conn.GetID(), "access conditions not met for user: %q close connection err: %v",