Dot 4 or Dot 5 Brake Fliud?

We had a master cyl leak onto firewall and bubbled paint. Went right down and got Dot 5. Added it directly and bled brakes until Dot5(purple) came out. Zero issues 11 years later. Factory disc front, rear drum.