diff --git a/server/mounts.go b/server/mounts.go index 9e832c1..d9f72e2 100644 --- a/server/mounts.go +++ b/server/mounts.go @@ -66,7 +66,7 @@ func (s *Server) customMounts() []environment.Mount { } // Check if the target path includes /home/container - if strings.Contains(target, "/home/container") && config.Get().BlockBaseDirMount { + if strings.HasPrefix(target, "/home/container") && config.Get().BlockBaseDirMount { logger.WithField("invalid_target_path", target).Warn("Skipping custom server mount; target path includes /home/container") continue }