Skip to content

Commit

Permalink
use HasPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
QuintenQVD0 authored Sep 24, 2024
1 parent 7169aa1 commit ba5ffeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/mounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ba5ffeb

Please sign in to comment.